Skip to content

Commit 2356b9c

Browse files
authored
Changed default chunk size to 5GB (maximum)
1 parent 9cd3661 commit 2356b9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

s3upload.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function S3MultiUpload(file) {
2-
this.PART_SIZE = 1 * 1024 * 1024 * 1024; // Minimum part size defined by aws s3 is 5 MB, maximum 5 GB
2+
this.PART_SIZE = 5 * 1024 * 1024 * 1024; // Minimum part size defined by aws s3 is 5 MB, maximum 5 GB
33
this.SERVER_LOC = '?'; // Location of the server
44
this.completed = false;
55
this.file = file;
@@ -234,4 +234,4 @@ S3MultiUpload.prototype.onUploadCompleted = function(serverData) {};
234234
* Override this method to execute something when part preparation is completed
235235
*
236236
*/
237-
S3MultiUpload.prototype.onPrepareCompleted = function() {};
237+
S3MultiUpload.prototype.onPrepareCompleted = function() {};

0 commit comments

Comments
 (0)