Skip to content

Commit

Permalink
Fix #1382: Better defaults for chunkSize and progressDelay
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-v committed Mar 26, 2019
1 parent 331c164 commit 61e7463
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ Change Log: `bootstrap-fileinput`

**Date:** 26-Mar-2019

- (enh #1382): Better defaults for `resumableUploadOptions.chunkSize` and `progressDelay`.
- Set defaults for `progressDelay` to `0` and `resumableUploadOptions.chunkSize` to `2048 KB` i.e. (`2 MB`)
- (bug #1381): Fix `uploadExtraData` to be submitted correctly with ajax responses.
- (enh #1379): Add ability to sanitize zoom cache. New property `sanitizeZoomCache` which is a function callback and defaults to:
```js
Expand Down
6 changes: 3 additions & 3 deletions js/fileinput.js
Original file line number Diff line number Diff line change
Expand Up @@ -5037,9 +5037,9 @@
}
}
self._hideFileIcon();
self._raise('filecleared');
self.$captionContainer.focus();
self._setFileDropZoneTitle();
self._raise('filecleared');
return self.$element;
},
reset: function () {
Expand Down Expand Up @@ -5367,12 +5367,12 @@
maxAjaxThreads: 5,
processDelay: 100,
queueDelay: 10, // must be lesser than process delay
progressDelay: 50, // must be lesser than process delay
progressDelay: 0, // must be lesser than process delay
enableResumableUpload: false,
resumableUploadOptions: {
fallback: null,
testUrl: null, // used for checking status of chunks/ files previously / partially uploaded
chunkSize: 10 * 1024, // in KB
chunkSize: 2 * 1024, // in KB
maxThreads: 4,
maxRetries: 3,
showErrorLog: true
Expand Down
2 changes: 1 addition & 1 deletion js/fileinput.min.js

Large diffs are not rendered by default.

0 comments on commit 61e7463

Please sign in to comment.