开发者

Uploadify in Zend Framework

开发者 https://www.devze.com 2023-04-07 23:32 出处:网络
I use uplodify to upload files in zend. <link href=\"/uploadify/uploadify.css\" rel=\"stylesheet\" type=\"text/css\" />

I use uplodify to upload files in 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>
 <in开发者_运维百科put id="file_upload" name="file_upload" type="file" />

This code is in view part index.phtml. But when i run my web application i see in my web devloper tool it shows in console

NetworkError: 404 Not Found - http://localhost/upload/uploadify.swf?preventswfcaching=1317192234400

Help me to solv this problem....


"Some of the option names have changed in v3 to be more intuitive. The 'uploader' option should now point to the php script. The 'swf' option will point to the flash file. "

http://www.uploadify.com/forums/discussion/7296/uploader-being-rewritten-in-v3.0.0/p1

part of code:

$("#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',


The path specified is wrong somewhere.

In jquery function, it is given as;

'uploader': '/uploadify/uploadify.swf',

Check from where request is going for "upload/uploadify.swf" to get a 404 error.

also, if you are using a .htaccess file, make sure the request for these files are not denied.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号