Plupload はすべてのブラウザ バー IE で動作します。#photo-upload
IE でリンクを押しても、ファイル ブラウザが開きません。のインスタンスuploader
は間違いなく適切に作成されており、開発ツールでチェックされています。
解決策に感謝します!
これは、アップローダを作成するために使用しているスクリプトです。
var uploader = new plupload.Uploader({
runtimes : 'gears,html5,flash,silverlight,html4',
browse_button : 'photo-upload',
container : 'img-container',
url : 'productPhoto.php?id=<?=$_GET["id"];?>',
max_file_size : '5mb',
flash_swf_url : '/dev/plupload/js/plupload.flash.swf',
silverlight_xap_url : '/dev/plupload/js/plupload.silverlight.xap',
unique_names : true,
filters : [{title : "Image files", extensions : "jpg,gif,png"}],
multipart_params: {type:1},
// Post init events, bound after the internal events
init : {
UploadProgress: function(up, file) {
// Called while a file is being uploaded
$("#bar").css("width",file.percent+"%");
},
FilesAdded: function(up, files) {
$(".progress").slideDown();
uploader.start();
up.refresh(); // Reposition Flash/Silverlight
},
UploadComplete: function(up, file, info) {
// Called when a file has finished uploading
setTimeout(function(){
$(".progress").slideUp();
$("#bar").css("width","0");
document.location.reload();
},2000);
},
Error: function(up, args) {
// Called when a error has occured
alert(args);
up.refresh(); // Reposition Flash/Silverlight
}
}
});
uploader.init();