我使用uplodify在zend中上传文件。
<link href="/uploadify/uploadify.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/uploadify/jquery-1.5.2.min.js"></script>
<script type="text/javascript" src="/uploadify/jquery.uploadify.min.js"></script>
<script type="text/javascript" src="/uploadify/swfobject.js"></script>
<script type="text/javascript" src="/uploadify/jquery.uploadify.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$('#file_upload').uploadify({
'uploader': '/uploadify/uploadify.swf',
'script': '/upload/upload',
'cancelImg': '/uploadify/cancel.png',
'folder': '/uploadify/uploads',
'auto': true
});
});
</script>
<input id="file_upload" name="file_upload" type="file" />此代码位于视图部件index.phtml中。但是当我运行我的web应用程序时,我在我的web devloper工具中看到它在控制台中显示
NetworkError: 404 Not Found - http://localhost/upload/uploadify.swf?preventswfcaching=1317192234400帮我解决这个问题……
发布于 2012-02-09 21:57:37
“为了更直观,v3中的一些选项名称已更改。'uploader‘选项现在应指向php脚本。'swf’选项将指向flash文件。”
http://www.uploadify.com/forums/discussion/7296/uploader-being-rewritten-in-v3.0.0/p1
部分代码:
$("#gallery").uploadify({
id : jQuery(this).attr('id'),
langFile : 'http://www.static-xxx.nu/uploader/uploadifyLang_en.js',
swf : 'http://www.static-xxx.nu/uploader/uploadify.swf',
uploader : '/uploadify/galleri.php',发布于 2011-09-28 15:14:15
指定的路径在某处错误。
在jquery函数中,它被给出为;
'uploader': '/uploadify/uploadify.swf',
检查"upload/uploadify.swf“的请求从哪里得到一个404错误。
此外,如果您使用的是.htaccess文件,请确保对这些文件的请求未被拒绝。
https://stackoverflow.com/questions/7579349
复制相似问题