Pre Merge pull request !148 from runphp/N/A

This commit is contained in:
runphp 2022-02-12 06:04:04 +00:00 committed by Gitee
commit f64c8a9821
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ public class FileUploadUtils
throws FileSizeLimitExceededException, InvalidExtensionException
{
long size = file.getSize();
if (DEFAULT_MAX_SIZE != -1 && size > DEFAULT_MAX_SIZE)
if (size > DEFAULT_MAX_SIZE)
{
throw new FileSizeLimitExceededException(DEFAULT_MAX_SIZE / 1024 / 1024);
}