Skip to content

Commit 628dc31

Browse files
SuberFuevilaliv3
authored andcommitted
Add fileRemoved, elaborate on filesSubmitted.
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.
1 parent 947e552 commit 628dc31

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,8 @@ this means that calling `flow.upload()` function will not start current file upl
188188
Optionally, you can use the browser `event` object from when the file was
189189
added.
190190
* `.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.
192193
* `.fileRetry(file, chunk)` Something went wrong during upload of a specific file, uploading is being
193194
retried.
194195
* `.fileError(file, message, chunk)` An error occurred during upload of a specific file.

0 commit comments

Comments
 (0)