plupload能够兼容Safari~
首先下载官方的js:https://www.plupload.com/download/
然后在盒子上绑定id以供插件生成上传表单
$('#picker').each(function (item,index) {
var uploader = new plupload.Uploader({
runtimes: 'html5,flash,silverlight,html4',
browse_button:'picker', // you can pass an id...
url: '/?m=Upload&a=uploadChPsd',
chunk_size: '5120kb',//如果数值太大则无法切片上传
max_retries: 0,
multipart: true,
flash_swf_url: '/plupload/Moxie.swf',
silverlight_xap_url: '/plupload/js/Moxie.xap',
filters: {
max_file_size: '100M',
mime_types: [
{title: "Images or ZIP", extensions: "ZIP"}
]
},
multipart_params: {},
init: {
PostInit: function () {
},
BeforeUp