discuz 手机版 多图上传修改 备忘
调整默认最大尺寸优化上传效果
var maxheight = 1000; var maxwidth = 900;
var filex = new Array();
for (let index = 0; index < this.files.length; index++) {
setTimeout(() => {
filex[0] = this.files[index];
$.buildfileupload({
uploadurl:'misc.php?mod=swfupload&operation=upload&type=image&inajax=yes&infloat=yes&simple=2',
files:filex,
uploadformdata:{uid:"$_G[uid]", hash:"<!--{eval echo md5(substr(md5($_G[config][security][authkey]), 8).$_G[uid])}-->"},
uploadinputname:'Filedata',
maxfilesize:"$swfconfig[max]",
success:uploadsuccess,
error:function() {
popup.open('{lang uploadpicfailed}', 'alert');
}
});
}, index * 1000);
}



