【发布时间】:2015-03-17 16:41:53
【问题描述】:
我想在我的 symfony 2 项目中使用这个插件:
https://github.com/blueimp/jQuery-File-Upload/wiki/Basic-plugin
我遵循了文档中的所有步骤。但它一直说找不到这条路径:
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/
我在树枝文件中的代码:
<input id="fileupload" type="file" name="files[]" data-url="{{asset('js/file-uploader/server/php/')}}" multiple>
我的 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>
【问题讨论】: