I really need someones help with this. Here is my uploadify code:
$('#file_upload').uploadify({
'swf' : 'assets/js/uploadify.swf',
'uploader' : 'uploadify.php',
'method' : 'post',
'auto' : false,
'multi' : false,
'uploadLimit' : 1,
'buttonText' : 'Select Image',
'onUploadStart' : function(file) {
var $recordId = [PASSED RECORD ID HERE];
$("#file_upload").uploadify("settings", "formData", {'recordId' : $recordId});
}
});
what I’m trying to do is run this when a button is clicked instead of auto uploading the file. I have a function like below that is called when the button is click.
function updateRecord() {
$('#file_upload').uploadify('upload');
}
This all works fine but what i need to do is when the updateRecord function is run I need to pass the $recordId through to the upload formData.
Can some please tell me how I can pass the formData from my updateRecord function?
Many thanks
I sorted it, i was able to update the settings before calling the upload method:
Thanks