I am using jquery ajax fileupload. the file is uploaded correctkly but i got error like
TypeError: jQuery.handleError is not a function
[Break On This Error
if(typeof(data.error) != 'undefined')
{
if(data.error != '')
{
alert(data.error);
}else
{
alert(data.msg);
showprofilepicture();
}
}
should be
jQuery.ajaxFileUpload({
url:'',
secureuri:false,
fileElementId:'fileToUpload',
dataType: 'json',
data:{'image_desc':image_desc,'gallery_id':curr_time_stamp},
success: function (data, status)
{
if(typeof(data.error) != 'undefined')
{
if(data.error != '')
{
alert(data.error);
}
}else
{
alert(data.msg);
showprofilepicture();
}
}
}
)