Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 5563c22

Browse files
author
Nick Litwin
committedApr 5, 2016
Fix conversion error to actually be 500MB
1 parent ddfa94b commit 5563c22

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎app/directives/tc-file-input/tc-file-input.directive.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ import _ from 'lodash'
4949
}
5050

5151
var fileSize = file.size
52-
var isAllowedFileSize = fileSize < '500000000'
52+
var isAllowedFileSize = fileSize < '524288000'
5353

5454
var selectedFileType = file.type.slice(file.type.lastIndexOf('/') + 1)
5555
var isAllowedFileFormat = _.some(fileTypes, _.matches(selectedFileType))

‎app/directives/tc-file-input/tc-file-input.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ describe('Topcoder File Input Directive', function() {
163163

164164
describe('with a file that\'s greater than 500MB', function() {
165165
beforeEach(function() {
166-
fileList[0].size = 500000001
166+
fileList[0].size = 524288001
167167

168168
$(fileInput).triggerHandler({
169169
type: 'change',

0 commit comments

Comments
 (0)
This repository has been archived.