本文介绍了Valums阿贾克斯文件上传处理了。文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 是的,所以我用这个,valums AJAX文件上传: http://valums.com/ajax-upload/ Yes so I am using this, valums ajax fileupload:http://valums.com/ajax-upload/使用这些设置:function createUploader(){ var uploader = new qq.FileUploader({ element: document.getElementById('file-uploader-demo1'), action: 'photo.php?mode=upload', debug: true }); }不就photo.php?模式=上传,我试图来处理正在上传的文件,在Not on photo.php?mode=upload, I tried to handle the file that are being uploaded, by if(isset($_FILES['qqfile'])){$filename = $_FILES['qqfile']['name'];$imageSizeInfo = getimagesize($filename);}它不执行这个,没有$ _FILES使用isset ..?没有忘记任何脚本设置中添加?我试图删除if语句,那么它只是说和getimagesize错误需要的参数不能为空。It doesnt execute this, no $_FILES isset.. ? Have i forgotten anything to add in the script settings? And i tried to remove the if statement, then it just says getimagesize error needs parameter cannot be empty.推荐答案 Valums上传脚本(最新版本)使用Firefox,Chrome或Safari浏览器)时,将通过AJAX的文件信息(XHR流)。但是IE6 / 7/8/9不支持它,并回落到iframe的支持,正确地设置了$ _FILES数组。Valums upload script (latest version) sends file information by ajax (xhr stream) when using Firefox, Chrome or Safari). However IE6/7/8/9 does not support it and falls back to iframe support which properly sets the $_FILES array.如果你只想使用超级全局$ _FILES数组,你可以使用 Valums脚本的旧版本,它会在所有浏览器执行相同的。If you only want to use the super global $_FILES array you can use the older version of Valums script and it will perform the same across all browsers. 这篇关于Valums阿贾克斯文件上传处理了。文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
10-15 13:42