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
Add fileRemoved.
Elaborate on filesSubmitted to note that since it happens after the file is added to the upload queue, invoking flow.upload() will upload the files in the list.
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -188,7 +188,8 @@ this means that calling `flow.upload()` function will not start current file upl
188
188
Optionally, you can use the browser `event` object from when the file was
189
189
added.
190
190
*`.filesAdded(array, event)` Same as fileAdded, but used for multiple file validation.
191
-
*`.filesSubmitted(array, event)` Can be used to start upload of currently added files.
191
+
*`.filesSubmitted(array, event)` Same as filesAdded, but happens after the file is added to upload queue. Can be used to start upload of currently added files.
192
+
*`.fileRemoved(file)` The specific file was removed from the upload queue. Combined with filesSubmitted, can be used to notify UI to update its state to match the upload queue.
192
193
*`.fileRetry(file, chunk)` Something went wrong during upload of a specific file, uploading is being
193
194
retried.
194
195
*`.fileError(file, message, chunk)` An error occurred during upload of a specific file.
0 commit comments