Skip to content

Commit d059156

Browse files
silverwindlunny
andauthored
Disable dropzone's timeout (#12024) (#12032)
Dropzone 4.4 introduced a 30s XHR timeout that will kill any upload still in progress. This disable that timeout again. Ref: https://www.dropzonejs.com/#config-timeout Ref: #10645 Ref: https://xhr.spec.whatwg.org/#the-timeout-attribute Fixes: #12022 Fixes: #11906 Co-authored-by: Lunny Xiao <[email protected]> Co-authored-by: Lunny Xiao <[email protected]>
1 parent 12f51ec commit d059156

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

web_src/js/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -915,6 +915,7 @@ async function initRepository() {
915915
dictInvalidFileType: $dropzone.data('invalid-input-type'),
916916
dictFileTooBig: $dropzone.data('file-too-big'),
917917
dictRemoveFile: $dropzone.data('remove-file'),
918+
timeout: 0,
918919
init() {
919920
this.on('success', (file, data) => {
920921
filenameDict[file.name] = {
@@ -2308,6 +2309,7 @@ $(document).ready(async () => {
23082309
dictInvalidFileType: $dropzone.data('invalid-input-type'),
23092310
dictFileTooBig: $dropzone.data('file-too-big'),
23102311
dictRemoveFile: $dropzone.data('remove-file'),
2312+
timeout: 0,
23112313
init() {
23122314
this.on('success', (file, data) => {
23132315
filenameDict[file.name] = data.uuid;

0 commit comments

Comments
 (0)