Skip to content

Commit 7316948

Browse files
Piotr RomańskiPiotr Romański
Piotr Romański
authored and
Piotr Romański
committed
feat(upload): Correct part size
1 parent e33a91d commit 7316948

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/api/upload/upload.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ export class Upload extends EventEmitter {
208208
const f = await getFile(input, this.sanitizerOptions);
209209
f.customName = this.overrideFileName;
210210
if (f.size > BIG_FILE_THRESHOLD){
211-
this.uploader.setPartSize(BIG_FILE_THRESHOLD);
211+
this.uploader.setPartSize(BIG_FILE_PART_SIZE);
212212
}
213213
this.uploader.addFile(f);
214214

0 commit comments

Comments
 (0)