Im uploading a file using the following jquery..
function ajaxFileUpload(jobid)
{
$("#loading")
.ajaxStart(function(){
$(this).show();
})
.ajaxComplete(function(){
$(this).hide();
});
$.ajaxFileUpload
(
{
url:'addjobrpc.php',
secureuri:false,
jobID:jobid,
fileElementId:'fileToUpload',
dataType: 'json',
success: function (data, status)
{
$('#imageid').val(data.imageid);
if(typeof(data.error) != 'undefined')
{
if(data.error != '')
{
alert(data.error);
}else
{
alert(data.msg);
}
}
},
error: function (data, status, e)
{
alert(e);
}
}
)
return false;
}
My form looks like this...
<form name="form" action="" method="POST" enctype="multipart/form-data">
I get the filename with $_FILES['fileToUpload']['name']; but how would I get a input that is not part of the file upload? For example Jobid is a hidden field but I can't seem to get the value in addjobrpc.
Thanks