Skip to content

Commit

Permalink
FLUID 4713: fileSizeLimit specifies a size files must be smaller than…
Browse files Browse the repository at this point in the history
…, rather than the max size

changed the greater than equal to sign to greater only in HTML5UploaderSuppoprt.js
  • Loading branch information
aashay201297 committed Feb 21, 2017
1 parent 75ec0f2 commit 9d867e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/uploader/js/HTML5UploaderSupport.js
Expand Up @@ -251,7 +251,7 @@ var fluid_3_0_0 = fluid_3_0_0 || {};
var file = files[i];
if (fileLimit && remainingUploadLimit === 0) {
that.events.onQueueError.fire(file, fluid.uploader.queueErrorConstants.QUEUE_LIMIT_EXCEEDED);
} else if (file.size >= sizeLimit) {
} else if (file.size > sizeLimit) {
file.filestatus = fluid.uploader.fileStatusConstants.ERROR;
that.events.onQueueError.fire(file, fluid.uploader.queueErrorConstants.FILE_EXCEEDS_SIZE_LIMIT);
} else if (!fileLimit || remainingUploadLimit > 0) {
Expand Down

0 comments on commit 9d867e4

Please sign in to comment.