documentation v2.1.0
Release Date August 24, 2009
available options
| uploader |
The relative path to the uploadify.swf file. Default = ‘uploadify.swf’ |
| script |
The relative path to the backend script that will be processing your uploaded files. |
| checkScript |
The relative path to the backend script that will check if the file selected already resides on the server. |
| scriptData |
An object containing name/value pairs of additional information you would like sent to the upload script. {‘name’: ‘value’} |
| fileDataName |
The name of your files array in the upload server script. |
| method New |
Set the method for sending scriptData to the backend script. Either ‘GET’ or ‘POST’. Default is set to ‘POST’. |
| scriptAccess |
The access mode for scripts in the flash file. If you are testing locally, set to ‘always’. |
| folder |
The path to the folder you would like to save the files to. Do not end the path with a ‘/’. |
| queueID New |
The ID of the element you want to use as your file queue. By default, one is created on the fly below the ‘Browse’ button. |
| queueSizeLimit New |
The limit of the number of items that can be in the queue at one time. Default = 999. |
| multi |
Set to true if you want to allow multiple file uploads. |
| auto |
Set to true if you would like the files to be uploaded when they are selected. |
| fileDesc |
The text that will appear in the file type drop down at the bottom of the browse dialog box. |
| fileExt |
A list of file extensions you would like to allow for upload. Format like ‘*.ext1;*.ext2;*.ext3′. |
| sizeLimit |
A number representing the limit in bytes for each upload. |
| simUploadLimit changed |
A limit to the number of simultaneous uploads you would like to allow. |
| buttonText |
The text you would like to appear on the default button. Default = ‘BROWSE’ |
| buttonImg |
The path to the image you will be using for the browse button. |
| hideButton |
Set to true if you want to hide the button image. |
| rollover |
Set to true if you would like to activate rollover states for your browse button. To prepare your browse button for rollover states, simple add the ‘over’ and ‘press’ states below the normal state in a single file. *Mouseover events are inconsistent in Flash 9 so you may see a short lag when using the rollover option. |
| width |
The width of the button image / flash file. Default = 30 |
| height |
The height of the button image / flash file. If rollover is set to true, this should be 1/3 the height of the actual file. Default = 110 |
| wmode |
Set to transparent to make the background of the flash file transparent. If set to transparent, the flash file will be at the top-most layer of the page. By omitting the buttonImg option and setting wmode to transparent, the entire flash file will be transparent, allowing you layer content below it or style the button using CSS. Default = ‘opaque’ |
| cancelImg |
The path to the default cancel image. Default = ‘cancel.png’ |
| onInit |
A function that triggers when the script is loaded. The default event handler hides the targeted element on the page and replaces it with the flash file, then creates a queue container after it. The default function will not trigger if the value of your custom function returns false. For custom functions, you can access the html for the flash file using the variable flashElement. |
| onSelect |
A function that triggers for each element selected. The default event handler generates a 6 character random string as the unique identifier for the file item and creates a file queue item for the file. The default event handler will not trigger if the value of your custom function returns false. Three arguments are passed to the function:
|
| onSelectOnce | A function that triggers once for each select operation. There is no default event handler.
Two arguments are sent to the function:
|
| onCancel |
A function that triggers when a file upload is cancelled or removed from the queue. The default event handler removes the file from the upload queue. The default event handler will not trigger if the value of your custom function returns false. Four arguments are sent to the function:
data: Details about the file queue.
|
| onClearQueue |
A function that triggers when the fileUploadClearQueue function is called. The default event handler removes all queue items from the upload queue. The default event handler will not trigger if the value of your custom function returns false. Two arguments are sent to the function:
|
| onQueueFull New |
A function that triggers when the file queue has reached maximum capacity. The default event alerts the user of the queue size. Two arguments are sent to the function: |
| onError Changed |
A function that triggers when an error occurs during the upload process. The default event handler attaches an error message to the queue item returning the error and changes it’s queue item container to red. Four arguments are sent to the function:
errorObj: An object containing details about the error returned.
|
| onOpen new |
A function that fires each time a file is initially opened for uploading by the Flash file. There is no defualt function. Three arguments are sent to the function:
|
| onProgress |
A function that fires each time the progress of a file upload changes. The default function updates the progress bar in the file queue item. The default function will not trigger if the value of your custom function returns false. Four arguments are sent to function:
data: An object containing details about the upload and queue.
|
| onComplete |
A function that triggers when a file upload has completed. The default function removes the file queue item from the upload queue. The default function will not trigger if the value of your custom function returns false. Four arguments are sent to the function:
response: The data sent back from the server.
|
| onAllComplete |
A function that triggers when all file uploads have completed. There is no default event handler. Two arguments are sent to the function:
|
| onCheck |
A function that triggers when an existing file is detected on the server. The default event handler opens a confirmation box. Five arguments are sent to the function: |
related functions
| uploadifySettings Changed |
A function used to change options for a fileUpload object. Two arguments are available, one is required: The following example will change the upload folder to ‘/uploads’: $(‘#someID’).uploadifySettings(‘folder’,'/uploads’);
The following example will return the simUploadLimit: $(‘#someID’).uploadifySettings(’simUploadLimit’);
The following options can be changed: The following will return the current size of the queue When using scriptData enter it in {key1 : value1, key2 : value2, …} format. #(‘#someID’).uploadifySettings(’scriptData’, {‘name’ : some.val()}); If the key already exists it will update it, if it doesn’t exist it will add it. You no longer need to re-write every key/value pair. When requesting scriptData it will return the key/value pairs as an object. |
| uploadifyUpload Changed |
A function used to begin an upload of a single file or all files in the queue. One argument is optional: $(‘#someID’).uploadifyUpload();
|
| uploadifyCancel Changed |
A function used to remove a file from the queue or stop an upload in progress. One argument is required. The following example will remove a file from the upload queue: $(‘#someID’).uploadifyCancel(‘NFJSHS’);
|
| uploadifyClearQueue Changed |
A function used to clear all files from the upload queue. The following example clears the file upload queue: $(‘#someID’).uploadifyClearQueue();
|

