Skip to content

Commit ec0743b

Browse files
silverwindlunny
andauthored
Disable dropzone's timeout (#12024)
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]>
1 parent d9aa007 commit ec0743b

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
@@ -899,6 +899,7 @@ async function initRepository() {
899899
dictInvalidFileType: $dropzone.data('invalid-input-type'),
900900
dictFileTooBig: $dropzone.data('file-too-big'),
901901
dictRemoveFile: $dropzone.data('remove-file'),
902+
timeout: 0,
902903
init() {
903904
this.on('success', (file, data) => {
904905
filenameDict[file.name] = {
@@ -2304,6 +2305,7 @@ $(document).ready(async () => {
23042305
dictInvalidFileType: $dropzone.data('invalid-input-type'),
23052306
dictFileTooBig: $dropzone.data('file-too-big'),
23062307
dictRemoveFile: $dropzone.data('remove-file'),
2308+
timeout: 0,
23072309
init() {
23082310
this.on('success', (file, data) => {
23092311
filenameDict[file.name] = data.uuid;

0 commit comments

Comments
 (0)