From 31eb12c7962557553aa426f16511e459ad593683 Mon Sep 17 00:00:00 2001 From: Dennis Kigen Date: Tue, 22 Oct 2024 14:25:46 +0300 Subject: [PATCH] (fix) Remove extra space in file size limit error message Removes an extra space from the error message returned when the uploaded file's size exceeds the allowable limit. --- .../org/openmrs/module/attachments/rest/AttachmentResource.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/omod/src/main/java/org/openmrs/module/attachments/rest/AttachmentResource.java b/omod/src/main/java/org/openmrs/module/attachments/rest/AttachmentResource.java index da3f9f1..85528f1 100644 --- a/omod/src/main/java/org/openmrs/module/attachments/rest/AttachmentResource.java +++ b/omod/src/main/java/org/openmrs/module/attachments/rest/AttachmentResource.java @@ -114,7 +114,7 @@ public Object upload(MultipartFile file, RequestContext context) throws Response } // Verify File Size if (ctx.getMaxUploadFileSize() * 1024 * 1024 < (double) file.getSize()) { - throw new IllegalRequestException("The file exceeds the maximum size"); + throw new IllegalRequestException("The file exceeds the maximum size"); } // Verify file extension