Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 81f5f9b

Browse files
committed
XHR timeout disabled is required for file uploads.
A timeout (e.g. set globally to work around certain Google Chrome bugs) would otherwise break file uploads lasting longer than the set value.
1 parent 7d46990 commit 81f5f9b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

js/jquery.fileupload.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,8 @@
277277
// The following are jQuery ajax settings required for the file uploads:
278278
processData: false,
279279
contentType: false,
280-
cache: false
280+
cache: false,
281+
timeout: 0
281282
},
282283

283284
// A list of options that require reinitializing event listeners and/or

0 commit comments

Comments
 (0)