I want to use this plugin in my symfony 2 project:
https://github.com/blueimp/jQuery-File-Upload/wiki/Basic-plugin
I followed all the steps in the documentation. But it keeps saying that this path is not found :
error:
Failed to load resource: the server responded with a status of 404 (Not Found)
path:
http://localhost/vdvinfra/web/js/file-uploader/server/php/
My code in the twig file :
<input id="fileupload" type="file" name="files[]" data-url="{{asset('js/file-uploader/server/php/')}}" multiple>
my js :
<script type="text/javascript">
$(function () {
$('#fileupload').fileupload({
/* ... */
progressall: function (e, data) {
var progress = parseInt(data.loaded / data.total * 100, 10);
$('#progress .bar').css(
'width',
progress + '%'
);
}
});
});
</script>