Skip to content

Commit

Permalink
feat(upload): Correct part size
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Romański authored and Piotr Romański committed Jan 13, 2022
1 parent e33a91d commit 7316948
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/api/upload/upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export class Upload extends EventEmitter {
const f = await getFile(input, this.sanitizerOptions);
f.customName = this.overrideFileName;
if (f.size > BIG_FILE_THRESHOLD){
this.uploader.setPartSize(BIG_FILE_THRESHOLD);
this.uploader.setPartSize(BIG_FILE_PART_SIZE);
}
this.uploader.addFile(f);

Expand Down

0 comments on commit 7316948

Please sign in to comment.