I am using ajaxupload for uploading and using jQuery 1.7.2. I got an error like this
TypeError: jQuery.createUploadForm is not a function
[Break On This Error]
... jQuery.createUploadForm(id, s.fileElementId, (typeof(s.data)=='undefined'?false...
my code is
function ajaxFileUpload()
{
jQuery.ajaxFileUpload
(
{
url:'<?php echo $currenturl.&fileupload=enable;?>',
secureuri:false,
fileElementId:'fileToUpload',
dataType: 'json',
success: function (data, status)
{
if(typeof(data.error) != 'undefined')
{
if(data.error != '')
{
alert(data.error);
}else
{
alert(data.msg);
}
}
}
}
)
return false;
}
and the html is
<div class="upload-button"><input type="button" value="upload" id="upload-btn" onclick="return ajaxFileUpload();"/></div>
Please help me to solve this. Thanks in advance.