settings
'settings'
Return or update the value of one of the settings in an Uploadify instance.
Arguments
- name
The name of the setting you want to return or change. Only setting this argument will return the value. - value
The value you would like to use for the setting. - resetObjects
Set this to true when updating the postData object to erase existing values. Otherwise, new values will be added to existing ones.
*The only setting that cannot be set is the swf setting.
Demo
|
1 2 |
<input type="file" name="file_upload" id="file_upload" />
<a href="javascript:changeBtnText()">Change the Button Text</a> | <a href="javascript:returnBtnText();">Read the Button</a> |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
$(function() {
$("#file_upload").uploadify({
'swf' : '/uploadify/uploadify.swf',
'uploader' : '/uploadify/uploadify.php'
});
});
function changeBtnText() {
$('#file_upload').uploadify('settings','buttonText','BROWSE');
}
function returnBtnText() {
alert('The button says ' + $('#file_upload').uploadify('settings','buttonText'));
} |

