From 291eebca710b7bca34cdace6fa7482a189fed5da Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Sun, 3 Apr 2022 04:45:06 +0200 Subject: [PATCH] reduce default part size in frontend --- frontend/src/upload.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/upload.ts b/frontend/src/upload.ts index 7fabb8c..643e4c5 100644 --- a/frontend/src/upload.ts +++ b/frontend/src/upload.ts @@ -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;