A mixin for dojox/form/Uploader that utilizes a Flash SWF for handling to upload in IE. All other browsers will use the HTML5 plugin, unless force="flash" is used, then Flash will be used in all browsers. force="flash" is provided because Flash has some features that HTML5 does not yet have. But it is still not recommended because of the many problems that Firefox and Webkit have with the Flash plugin.
All properties and methods listed here are specific to the Flash version only.
(Flash only) throttles the upload to a certain amount of files at a time. By default, Flash uploads file one at a time to the server, but in parallel. Firefox will try to queue all files at once, leading to problems. Set this to the amount to upload in parallel at a time. Generally, 1 should work fine, but you can experiment with queuing more than one at a time. This is of course ignored if selectMultipleFiles equals false.
Re-implemented. devMode increases the logging, adding style tracing from the SWF.
If true, outputs traces from the SWF to console. What exactly gets passed is very relative, and depends upon what traces have been left in the DEFT SWF.
If true, then flash request is sent with a value that changes with each request (timestamp)
The amount of time given to the uploaded file to wait for a server response. After this amount of time, the onComplete is fired but with a 'server timeout' error in the returned item.
If true, will not verify that the server was sent the correct format. This can be safely set to true. The purpose of the server side check is mainly to show the dev if they've implemented the different returns correctly.
Path to SWF. Can be overwritten or provided in djConfig.
Parameter | Type | Description |
---|---|---|
fileArray | undefined |
Parameter | Type | Description |
---|---|---|
fileArray | undefined |
Subscribing to published topics coming from the Flash uploader.
Uploads selected files. Alias "upload()" should be used instead.
Parameter | Type | Description |
---|---|---|
formData | Object |
Optional
|
Parameter | Type | Description |
---|---|---|
fileArray | undefined |
Stub - Flash-specific event. Fires on each selection of files and only provides the files selected on that event - not all files selected, as with HTML5
Parameter | Type | Description |
---|---|---|
fileArray | undefined |
Stub - Flash-specific event. Fires on progress of upload and only provides a file-specific event
Parameter | Type | Description |
---|---|---|
fileArray | undefined |
Stub - SWF has been downloaded 100%.
Parameter | Type | Description |
---|---|---|
uploader | dojox/form/FileUploader |
Stub - Fired when embedFlash has created the Flash object, but it has not necessarilly finished downloading, and is ready to be communicated with.
Parameter | Type | Description |
---|---|---|
uploader | dojox/form/FileUploader |