Valums-File-Uploader / file-uploader

Multiple file upload plugin for HTML forms. User-friendly progress-bar + uploads via drag-and-drop. Coded in Javascript + AJAX, not Flash. Server-side PHP, Java, & ColdFusion examples included.
http://valums-file-uploader.github.com/file-uploader/
Other
320 stars 141 forks source link

Not working on IE #15

Open alejandroiglesias opened 12 years ago

alejandroiglesias commented 12 years ago

The problem is that the request on IE gets (pending) status and doesn't uploads anything. I wanted to try the library using client/demo.htm, but making it upload to server/php.php. Here's how I used it:

client/demo.htm

<script>        
    function createUploader(){            
        var uploader = new qq.FileUploader({
            element: document.getElementById('file-uploader-demo1'),
            action: '/server/php.php',
            debug: true,
            extraDropzones: [qq.getByClass(document, 'qq-upload-extra-drop-area')[0]]
        });           
    }

    // in your app create uploader as soon as the DOM is ready
    // don't wait for the window to load  
    window.onload = createUploader;     
</script>

server/php.php

$allowedExtensions = array('wmv', 'mpg', 'avi', 'mov');
$sizeLimit = 30 * 1024 * 1024;
$uploader = new qqFileUploader($allowedExtensions, $sizeLimit);
$result = $uploader->handleUpload('uploads/');
echo htmlspecialchars(json_encode($result), ENT_NOQUOTES);
miguelmanzano commented 11 years ago

Could you solve this problem? I am working with python on server side but I don't get to work on IE.

data = request.FILES['qqfile'] fileName = data.name fileSize = int(data.size) im_data = StringIO.StringIO(data.read()) ....

I don't get anything with data.read() Any suggestion?