Skip to content

Commit

Permalink
Merge pull request #18 from rockrep/remove_minimum_size_check
Browse files Browse the repository at this point in the history
remove 5MB minimum Javascript check.  <5MB allowed by AWS
  • Loading branch information
maxgillett committed Apr 19, 2014
2 parents 03fccb8 + 8dd90e4 commit 18bbddb
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions vendor/assets/javascripts/s3_multipart/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,6 @@ function S3MP(options) {
}

_.each(files, function(file, key) {
if (file.size < 5000000) {
return S3MP.onError({name: "FileSizeError", message: "File size is too small"})
// This should still work. The multipart API just can't be used b/c Amazon doesn't allow
// multipart file uploads that are less than 5 mb in size.
}

var upload = new Upload(file, S3MP, key);
S3MP.uploadList.push(upload);
upload.init();
Expand Down Expand Up @@ -467,4 +461,4 @@ return S3MP;

}());

}(this));
}(this));

0 comments on commit 18bbddb

Please sign in to comment.