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
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -142,6 +142,8 @@ set singleFile to true.
142
142
*`.removeFile(file)` Cancel upload of a specific `FlowFile` object on the list from the list.
143
143
*`.getFromUniqueIdentifier(uniqueIdentifier)` Look up a `FlowFile` object by its unique identifier.
144
144
*`.getSize()` Returns the total size of the upload in bytes.
145
+
*`.sizeUploaded()` Returns the total size uploaded of all files in bytes.
146
+
*`.timeRemaining()` Returns remaining time to upload all files in seconds. Accuracy is based on average speed. If speed is zero, time remaining will be equal to positive infinity `Number.POSITIVE_INFINITY`
145
147
146
148
#### Events
147
149
@@ -155,11 +157,11 @@ added.
155
157
*`.filesAdded(array, event)` Same as fileAdded, but used for multiple file validation.
156
158
*`.filesSubmitted(array, event)` Can be used to start upload of currently added files.
157
159
*`.fileRetry(file)` Something went wrong during upload of a specific file, uploading is being retried.
158
-
*`.fileError(file, message)` An error occured during upload of a specific file.
160
+
*`.fileError(file, message)` An error occurred during upload of a specific file.
159
161
*`.uploadStart()` Upload has been started on the Flow object.
160
162
*`.complete()` Uploading completed.
161
163
*`.progress()` Uploading progress.
162
-
*`.error(message, file)` An error, including fileError, occured.
164
+
*`.error(message, file)` An error, including fileError, occurred.
163
165
*`.catchAll(event, ...)` Listen to all the events listed above with the same callback function.
164
166
165
167
### FlowFile
@@ -189,8 +191,7 @@ FlowFile constructor can be accessed in `Flow.FlowFile`.
189
191
*`.isUploading()` Returns a boolean indicating whether file chunks is uploading.
190
192
*`.isComplete()` Returns a boolean indicating whether the file has completed uploading and received a server response.
191
193
*`.sizeUploaded()` Returns size uploaded in bytes.
192
-
*`.timeRemaining()` Returns remaining time to upload in seconds. Accuracy is based on average
193
-
speed.
194
+
*`.timeRemaining()` Returns remaining time to finish upload file in seconds. Accuracy is based on average speed. If speed is zero, time remaining will be equal to positive infinity `Number.POSITIVE_INFINITY`
194
195
*`.getExtension()` Returns file extension in lowercase.
0 commit comments