使用uploadify在localhost中可以上传,但是在vhosts的一个项目中,上传后提示了文件上传成功,但是目标文件夹下没有数据,求助

解决方案 »

  1.   

    JS代码:
     $('#uploadify').uploadify({            'uploader'  : '/statics/wj/plugins/uploadify.swf',            'script'    : '/index.php?m=account&c=avatar',            'cancelImg' : '/statics/wj/plugins/cancel.png',            'folder'    : '/uploadfile',
      
                'queueID': 'fileQueue',            'auto'      : false ,
      
                'multi'     : true,
      
                'sizeLimit': 3*1024*1024,
      
                // 'simUploadLimit'    :10,
      
                'onError' : function (a, b, c, d) {   
                    if (d.status == 404){
                        alert('找不到文件');
                    }else if (d.type === "HTTP"){
                        alert('error '+d.type+": "+d.status);
                    }else if (d.type ==="File Size"){
                        alert(c.name+' '+d.type+' Limit: '+Math.round(d.sizeLimit/1024)+'KB');
                    }else{
                        alert('error '+d.type+": "+d.text);
                    }   
                },   
                'onComplete'   : function (event, queueID, fileObj, response, data) {   
                    alert("文件上传成功:"+fileObj.filePath);
                }        });