mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2024-11-30 02:49:03 +08:00
附件上传组件改为单线程
This commit is contained in:
parent
5443d13fa3
commit
0290d00f9a
@ -107,6 +107,12 @@ class Uploader
|
||||
*/
|
||||
private function uploadFile()
|
||||
{
|
||||
if(empty($_FILES[$this->fileField]))
|
||||
{
|
||||
$this->stateInfo = $this->getStateInfo("ERROR_SIZE_EXCEED");
|
||||
return;
|
||||
}
|
||||
|
||||
$file = $this->file = $_FILES[$this->fileField];
|
||||
if (!$file) {
|
||||
$this->stateInfo = $this->getStateInfo("ERROR_FILE_NOT_FOUND");
|
||||
|
@ -176,7 +176,8 @@
|
||||
fileVal: editor.getOpt('fileFieldName'),
|
||||
duplicate: true,
|
||||
fileSingleSizeLimit: fileMaxSize,
|
||||
compress: false
|
||||
compress: false,
|
||||
threads: 1
|
||||
});
|
||||
uploader.addButton({
|
||||
id: '#filePickerBlock'
|
||||
|
@ -348,6 +348,7 @@
|
||||
server: actionUrl,
|
||||
fileVal: editor.getOpt('imageFieldName'),
|
||||
duplicate: true,
|
||||
threads: 1,
|
||||
fileSingleSizeLimit: imageMaxSize, // 默认 2 M
|
||||
compress: editor.getOpt('imageCompressEnable') ? {
|
||||
width: imageCompressBorder,
|
||||
|
@ -625,7 +625,8 @@
|
||||
fileVal: editor.getOpt('videoFieldName'),
|
||||
duplicate: true,
|
||||
fileSingleSizeLimit: fileMaxSize,
|
||||
compress: false
|
||||
compress: false,
|
||||
threads: 1
|
||||
});
|
||||
uploader.addButton({
|
||||
id: '#filePickerBlock'
|
||||
|
Loading…
Reference in New Issue
Block a user