1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-16 23:29:49 +00:00

add RESUMABLE_UPLOAD_FILE_BLOCK_SIZE setting (#2744)

This commit is contained in:
lian
2019-01-19 12:32:47 +08:00
committed by Daniel Pan
parent 485b9c8e6f
commit 0104f29ff1
4 changed files with 4 additions and 1 deletions

View File

@@ -192,7 +192,7 @@ define([
data.jqXHR = popup.fileupload('send', data);
} else {
var block_size = 1024 * 1024;
var block_size = app.pageOptions.resumable_upload_file_block_size * 1024 * 1024;
if (enable_resumable_fileupload &&
file.size && file.size > block_size) {
popup.fileupload('option', 'maxChunkSize', block_size);