public class UploadStartEvent extends UploadEvent
UploadStartHandler and register it via the .Uploader#setUploadStartHandler(UploadStartHandler) method in order to access uploader start
events.
Note that the 'uploadStart' event is called immediately before the file is uploaded. This event provides an opportunity to perform any last minute validation, add post params or do any other work before the file is uploaded.
The uploader can be cancelled by returning 'false' from uploadStart in the handler. If you return 'true' or do not return any value then the uploader proceeds. Returning 'false' will cause an uploadError event to fired.
| Constructor and Description |
|---|
UploadStartEvent(File file)
This constructor is intended for internal use only.
|
getFilepublic UploadStartEvent(File file)
UploadStartHandler.file - The native javascript object containing the details of the file being uploaded.