Adds a shortcode to embed the necessary elements to use
Uploadify in a page or post which will give your website visitors the ability to upload large files. By default the files will be uploaded to the folder set in your preferences.
The shortcode supports most of the Uploadify options, so it can be easily customized to suit your needs.
- Upload
plugin-name.php
to the /wp-content/plugins/
directory
- Activate the plugin through the 'Plugins' menu in WordPress
Usage:
To embed the uploader in a page or post use the following shortcode entered in the text area:
[uploadify]
Options:
The shortcode will accept most of the options that are supported by
Uploadify. These options are, straight from the Uploadify manual:
- script : The path to the backend script that will be processing your uploaded files. For absolute paths prefix the path with either '/' or 'http'
- checkScript : The relative path to the backend script that will check if the file selected already resides on the server. No Default. 'check.php' is provided with core files.
- fileDataName : The name of your files array in the upload server script. Default = 'Filedata'
- method : 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'. Default = 'sameDomain'
- folder : The path to the folder you would like to save the files to. Do not end the path with a '/'. For absolute paths prefix the path with either '/' or 'http'.
- queueSizeLimit : 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'. fileDesc is required when using this option.*
- sizeLimit : A number representing the limit in bytes for each upload.
- simUploadLimit : A limit to the number of simultaneous uploads you would like to allow. Default is 1.
- buttonText : The text you would like to appear on the default button. Default is '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.
- width : The width of the button image / flash file. Default is 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 is 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 is 'opaque'.
- cancelImg : The path to the default cancel image.