migration.mustache revision 76438e9b6959cc0bd7e35fb9cf5a11c87a37f744
1N/A supporting modules (`UploaderFlash`, `UploaderHTML5`, `Uploader.Queue`
1N/A Refer to the updated <a href="index.html">Uploader user guide</a> for
<a href="../uploader-deprecated/index.html">`uploader-deprecated`</a>
<td><strong>No longer exists</strong> on the Uploader instance. Instead, a `cancelUpload()` method is present on the instance of Uploader's queue, stored in `uploaderInstance.queue`.
(See the <a href="{{apiDocs}}/classes/Uploader.Queue.html#method_cancelUpload">API Docs</a> for more information).
<td><strong>No longer exists</strong>. Instead, set the `enabled` attribute to either `true` or `false`.</td>
<td><strong>No longer exists</strong>. Instead, set the `enabled` attribute to either `true` or `false`.</td>
of `Y.File` (can be obtained from the `fileList` attribute), `url` is the target URL
that should be POSTed along with the file upload. The old `method` argument has been removed since file upload requests are always POSTed. The old `postFileVarName` argument has been replaced with an instance-level `fileFieldName` attribute. (See the <a href="{{apiDocs}}/classes/UploaderFlash.html#method_upload">API Docs</a> for more information).</td>
`url`, and `postVars` as arguments, where `url` is the target URL to upload the files to, and `postVars` is a set of key-value pairs specifying the variables that should be POSTed along with the file upload. If POST variables need to be specified per file, you can use the `postVarsPerFile` attribute instead of specifying the third argument. The old `method` argument has been removed since file upload requests are always POSTed. The old `postFileVarName` argument has been replaced with an instance-level `fileFieldName` attribute. (See the <a href="{{apiDocs}}/classes/UploaderFlash.html#method_uploadAll">API Docs</a> for more information).</td>
`files`, `url`, and `postVars` as arguments, where `files` is an array of `Y.File` instances (can be obtained as a subset of `fileList` attribute), `url` is the target URL to upload the files to, and `postVars` is a set of key-value pairs specifying the variables that should be POSTed along with the file upload. If POST variables need to be specified per file, you can use the `postVarsPerFile` attribute instead of specifying the third argument. The old `method` argument has been removed since file upload requests are always POSTed. The old `postFileVarName` argument has been replaced with an instance-level `fileFieldName` attribute. (See the <a href="{{apiDocs}}/classes/UploaderFlash.html#method_uploadThese">API Docs</a> for more information).</td>
The progressive enhancement scenario has been improved in 3.5.0 Uploader. The Uploader now keeps a static `TYPE` property (`Y.Uploader.TYPE`), which you can check before creating an instance of Uploader or modifying its configuration settings. We recommend the following pattern for using Uploader on your pages:
if (Y.Uploader.TYPE != "none") {
var uploaderInstance = new Y.Uploader(....); // Common configuration settings.
if (Y.Uploader.TYPE == "html5") {
// e.g. a drag-and-drop area specification, etc.
else if (Y.Uploader.TYPE == "flash") {
// e.g. a fileFilters setting, etc.
uploaderInstance.render("#selectFilesButtonContainer");
// instead (e.g. a simple upload form field).
The backend requirements for the Flash version of the Uploader have not changed. However, the XMLHttpRequest Level 2 cross-domain request security model is different from that in Flash, and needs a different type of verification from the backend that receives POST requests with uploaded files. See the <a href="index.html#backend-setup">Backend Setup</a> section in the User Guide for more information, or read more about it on the <a href="http://www.html5rocks.com/en/tutorials/cors/#toc-handling-a-not-so-simple-request">HTML5Rocks website.</a>
please <a href="/projects/yui3/newticket">file a ticket</a> and we'll update
and the #yui IRC channel on freenode.net.