I'm using the HTML version of the script. I'm trying to read a dynamic version of the drop down and submit it with the files. The manual says that the onUploadStart should do it however in my case it doesn't work. It looks like the alert that I've put inside to test it is not triggered:
$(function() {
$('#file_upload').uploadifive({
'auto': false,
'formData': {
'timestamp': '<?php echo $timestamp; ?>',
'token': '<?php echo md5('unique_salt' . $timestamp); ?>',
},
'queueID': 'queue',
'uploadScript': 'contractor-access-login-new.php?ACTION=UPLOAD',
'fileObjName': 'file[]',
'onUploadStart': function(file) {
alert("TEST");
var folder = $('select[name=category] option:selected').val();
var formData = { 'folder': folder };
$('#file_upload').uploadifive("settings", "formData", formData);
}
});
});
Is there any other way to submit dynamic variables? Why this method doesn't work?