Valums Ajax file upload processes up. file?

Yes, I use this, valums ajax fileupload: http://valums.com/ajax-upload/

With these settings:

function createUploader(){            
    var uploader = new qq.FileUploader({
        element: document.getElementById('file-uploader-demo1'),
        action: 'photo.php?mode=upload',
        debug: true
    });           
}

Not in the .php photo? mode = upload, I tried to process the downloaded file,

if(isset($_FILES['qqfile'])){
$filename = $_FILES['qqfile']['name'];
$imageSizeInfo = getimagesize($filename);
}

It does not execute this, no $ _FILES isset ..? Did I forget to add anything to the script settings? And I tried to remove the if statement, then it just says that the getimagesize error parameter cannot be empty.

+2
source share
2 answers

Valums script ( ) ajax ( xhr) Firefox, Chrome Safari). IE6/7/8/9 iframe, $_FILES.

- $_FILES, Valums script, .

+2

script, qqUploadedFileXhr qqUploadedFileForm. script, : qqUploadedFileXhr.

, , : $file_name = $_GET['qqfile']; , .

"qqUploadedFileForm", :

  • $_FILES['qqfile']['name']
  • $_FILES['qqfile']['size'] ..
0

All Articles