I am trying to upload a file using the blueimp file. I use very simple code for testing, but the code does not work. There are two errors in the firefox error console
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 the button, another error occurred
Error: TypeError: $ (...). fileupload is not a function
This means that the plugins function is not working. Please inform in advance, please.
source share