summaryrefslogtreecommitdiffstats
path: root/web_src
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-06-24 16:24:27 +0200
committerGitHub <noreply@github.com>2020-06-24 10:24:27 -0400
commitd059156c3a000441de1a040721877060277eb9fe (patch)
treed4bd85c2307baade085d3ef73c50265aa08347a4 /web_src
parent12f51ec7dde0b957c3b0c59d95e1a15a528a25d1 (diff)
downloadgitea-d059156c3a000441de1a040721877060277eb9fe.tar.gz
gitea-d059156c3a000441de1a040721877060277eb9fe.zip
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: https://github.com/go-gitea/gitea/pull/10645 Ref: https://xhr.spec.whatwg.org/#the-timeout-attribute Fixes: https://github.com/go-gitea/gitea/issues/12022 Fixes: https://github.com/go-gitea/gitea/issues/11906 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'web_src')
-rw-r--r--web_src/js/index.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/web_src/js/index.js b/web_src/js/index.js
index 86d9ca380c..fc581baaef 100644
--- a/web_src/js/index.js
+++ b/web_src/js/index.js
@@ -915,6 +915,7 @@ async function initRepository() {
dictInvalidFileType: $dropzone.data('invalid-input-type'),
dictFileTooBig: $dropzone.data('file-too-big'),
dictRemoveFile: $dropzone.data('remove-file'),
+ timeout: 0,
init() {
this.on('success', (file, data) => {
filenameDict[file.name] = {
@@ -2308,6 +2309,7 @@ $(document).ready(async () => {
dictInvalidFileType: $dropzone.data('invalid-input-type'),
dictFileTooBig: $dropzone.data('file-too-big'),
dictRemoveFile: $dropzone.data('remove-file'),
+ timeout: 0,
init() {
this.on('success', (file, data) => {
filenameDict[file.name] = data.uuid;