I am trying to upload file by blueimp file upload.I use very simple code for testing but the code is not working.In firefox error console there is two error
Error: TypeError: $.ajaxTransport is not a function
Error: TypeError: $.support is undefined
Here is my code
<input id="fileupload" type="file" name="picture"/>
<input type='button' id='sub'/>
$('#sub').click(function () {
$('#fileupload').fileupload({
url: 'php/index.php',
// dataType: 'json',
done: function (e, data) {
$.each(data.result.files, function (index, file) {
$('<p/>').text(file.name).appendTo(document.body);
});
}
});
});
And after clicking button another error has occured
Error: TypeError: $(...).fileupload is not a function
That means the plugins function is not working.please help.thanks in advance.