Decrease chunk size, log time taken

This commit is contained in:
mvdbeek
2021-10-12 13:34:56 +02:00
parent 82abf51069
commit 81f24c3456
2 changed files with 8 additions and 3 deletions
+6 -1
View File
@@ -95,6 +95,7 @@ import * as tus from "tus-js-client";
cnf.error(cnf.error_file);
return;
}
const startTime = performance.now();
const file = file_data.file;
const tusEndpoint = `${getAppRoot()}api/upload/resumable_upload`;
const chunkSize = cnf.session.chunk_upload_size;
@@ -114,7 +115,11 @@ import * as tus from "tus-js-client";
cnf.progress(percentage);
},
onSuccess: function () {
console.log("Download %s from %s", upload.file.name, upload.url);
console.log(
`Download ${upload.file.name} from ${upload.url} took ${
(performance.now() - startTime) / 1000
} seconds`
);
cnf.success({});
},
});
+2 -2
View File
@@ -1704,12 +1704,12 @@ mapping:
chunk_upload_size:
type: int
default: 104857600
default: 10485760
required: false
desc: |
Galaxy can upload user files in chunks without using nginx. Enable the chunk
uploader by specifying a chunk size larger than 0. The chunk size is specified
in bytes (default: 100MB).
in bytes (default: 10MB).
dynamic_proxy_manage:
type: bool