Skip to content

Commit

Permalink
(fix) Remove extra space in file size limit error message (#69)
Browse files Browse the repository at this point in the history
Removes an extra space from the error message returned when the uploaded file's size exceeds the allowable limit.
  • Loading branch information
denniskigen authored Oct 22, 2024
1 parent 551e63f commit b0cb957
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b0cb957

Please sign in to comment.