简体   繁体   中英

Plupload browse button doesn't work in IE10

I just put up a simple file upload with JS Plupload plugin system. Just a button that opens the file explorer to select the file to download.

The system works in Chrome, Firefox, Safari but not in Internet Explorer.

Javascript

var uploader = new plupload.Uploader({
    containes :     'plupload',
    browse_button : 'uploadBrowser',
    runtimes : 'gears,html5,flash,silverlight,browserplus',
    url :           'upload.php',
    multipart:      true,
    urlstream_upload: true,
    multipart_params:{directory: 'test'},
    max_file_size : '3mb',
    filters : [
        {title : "Image files", extensions : "jpg,jpeg,png"}
    ]
});

Is the container that holds the uploader hidden on page load, or does it move in position at all? I spent ages trying to work out why my Pluploader wasn't working in IE (8/9/10) only to realise that because my Pluplaoder was hidden on page load (or at the time of configuring the uploader), and then subsequently shown when needed, IE threw it's toys and the button stopped working. All I ended up having to do was call uploader.refresh(); to refresh the positioning of the uplaoder.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM