Skip to content

Commit

Permalink
reduce default part size in frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
stv0g committed Apr 3, 2022
1 parent a152d55 commit 291eebc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ export class Upload {
protected params: UploadParams;
protected xhr: XMLHttpRequest;

readonly partSize = 6 << 20;
// TODO: take this from the configuration
readonly partSize = 6e6;

constructor(file: File, cbs: Callbacks, params: UploadParams) {
this.file = file;
Expand Down

0 comments on commit 291eebc

Please sign in to comment.