Skip to content

Commit a60c199

Browse files
committed
docs: fix docs for fileSuccess event and FlowFile.name
1 parent a267489 commit a60c199

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ Note: avoid using `a` and `button` tags as file upload buttons, use span instead
149149

150150
#### Events
151151

152-
* `.fileSuccess(file)` A specific file was completed.
152+
* `.fileSuccess(file, message)` A specific file was completed. First argument `file` is instance of `FlowFile`, second argument `message` contains server response. Response is always a string.
153153
* `.fileProgress(file)` Uploading progressed for a specific file.
154154
* `.fileAdded(file, event)` This event is used for file validation. To reject this file return false.
155155
This event is also called before file is added to upload queue,
@@ -172,7 +172,7 @@ FlowFile constructor can be accessed in `Flow.FlowFile`.
172172

173173
* `.flowObj` A back-reference to the parent `Flow` object.
174174
* `.file` The correlating HTML5 `File` object.
175-
* `.fileName` The name of the file.
175+
* `.name` The name of the file.
176176
* `.relativePath` The relative path to the file (defaults to file name if relative path doesn't exist)
177177
* `.size` Size in bytes of the file.
178178
* `.uniqueIdentifier` A unique identifier assigned to this file object. This value is included in uploads to the server for reference, but can also be used in CSS classes etc when building your upload UI.

0 commit comments

Comments
 (0)