You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,6 +103,7 @@ Available configuration options are:
103
103
function, it will be passed a FlowFile, a FlowChunk and isTest boolean (Default: `/`)
104
104
*`singleFile` Enable single file upload. Once one file is uploaded, second file will overtake existing one, first one will be canceled. (Default: false)
105
105
*`chunkSize` The size in bytes of each uploaded chunk of data. The last uploaded chunk will be at least this size and up to two the size, see [Issue #51](https://github.com/23/resumable.js/issues/51) for details and reasons. (Default: `1*1024*1024`)
106
+
*`calculateChunkSize` Optional function to set chunk size for each file. When this method is defined, chunkSize value will not be considered. File Object will be passed to it and it should return the size (in bytes) of chunks for that file.
106
107
*`forceChunkSize` Force all chunks to be less or equal than chunkSize. Otherwise, the last chunk will be greater than or equal to `chunkSize`. (Default: `false`)
107
108
*`simultaneousUploads` Number of simultaneous uploads (Default: `3`)
108
109
*`fileParameterName` The name of the multipart POST parameter to use for the file chunk (Default: `file`)
0 commit comments