Skip to content

Commit

Permalink
Increase chunk size in example
Browse files Browse the repository at this point in the history
  • Loading branch information
Acconut committed Sep 29, 2018
1 parent ac4c2d9 commit b8de83b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ protected URL doInBackground(Void... params) {
long totalBytes = upload.getSize();
long uploadedBytes = uploader.getOffset();

// Upload file in 10KB chunks
uploader.setChunkSize(10 * 1024);
// Upload file in 1MiB chunks
uploader.setChunkSize(1024 * 1024);

while(!isCancelled() && uploader.uploadChunk() > 0) {
uploadedBytes = uploader.getOffset();
Expand Down

0 comments on commit b8de83b

Please sign in to comment.