mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-11 18:42:54 +00:00
perf: 上传限制改为1G
This commit is contained in:
parent
86886ded16
commit
0147e7f1e1
@ -705,8 +705,8 @@ class FileController extends AbstractController
|
|||||||
'xls', 'xlsx' => "excel",
|
'xls', 'xlsx' => "excel",
|
||||||
'ppt', 'pptx' => "ppt",
|
'ppt', 'pptx' => "ppt",
|
||||||
'wps' => "wps",
|
'wps' => "wps",
|
||||||
'jpg', 'jpeg', 'png', 'gif', 'bmp', 'ico', 'raw' => "picture",
|
'jpg', 'jpeg', 'png', 'gif', 'bmp', 'ico', 'raw', 'svg' => "picture",
|
||||||
'rar', 'zip', 'jar', '7-zip', 'tar', 'gzip', '7z' => "archive",
|
'rar', 'zip', 'jar', '7-zip', 'tar', 'gzip', '7z', 'gz', 'apk', 'dmg' => "archive",
|
||||||
'tif', 'tiff' => "tif",
|
'tif', 'tiff' => "tif",
|
||||||
'dwg', 'dxf' => "cad",
|
'dwg', 'dxf' => "cad",
|
||||||
'ofd' => "ofd",
|
'ofd' => "ofd",
|
||||||
|
|||||||
@ -2328,8 +2328,8 @@ class Base
|
|||||||
'drawio',
|
'drawio',
|
||||||
'mind',
|
'mind',
|
||||||
'docx', 'wps', 'doc', 'xls', 'xlsx', 'ppt', 'pptx',
|
'docx', 'wps', 'doc', 'xls', 'xlsx', 'ppt', 'pptx',
|
||||||
'jpg', 'jpeg', 'png', 'gif', 'bmp', 'ico', 'raw',
|
'jpg', 'jpeg', 'png', 'gif', 'bmp', 'ico', 'raw', 'svg',
|
||||||
'rar', 'zip', 'jar', '7-zip', 'tar', 'gzip', '7z',
|
'rar', 'zip', 'jar', '7-zip', 'tar', 'gzip', '7z', 'gz', 'apk', 'dmg',
|
||||||
'tif', 'tiff',
|
'tif', 'tiff',
|
||||||
'dwg', 'dxf',
|
'dwg', 'dxf',
|
||||||
'ofd',
|
'ofd',
|
||||||
|
|||||||
@ -300,9 +300,9 @@ return [
|
|||||||
'log_level' => 4,
|
'log_level' => 4,
|
||||||
'log_file' => storage_path(sprintf('logs/swoole-%s.log', date('Y-m'))),
|
'log_file' => storage_path(sprintf('logs/swoole-%s.log', date('Y-m'))),
|
||||||
'document_root' => base_path('public'),
|
'document_root' => base_path('public'),
|
||||||
'buffer_output_size' => 512 * 1024 * 1024,
|
'buffer_output_size' => 2 * 1024 * 1024,
|
||||||
'socket_buffer_size' => 512 * 1024 * 1024,
|
'socket_buffer_size' => 8 * 1024 * 1024,
|
||||||
'package_max_length' => 512 * 1024 * 1024,
|
'package_max_length' => 1024 * 1024 * 1024, // 1GB
|
||||||
'reload_async' => true,
|
'reload_async' => true,
|
||||||
'max_wait_time' => 60,
|
'max_wait_time' => 60,
|
||||||
'enable_reuse_port' => true,
|
'enable_reuse_port' => true,
|
||||||
|
|||||||
@ -25,7 +25,7 @@ server {
|
|||||||
|
|
||||||
root /var/www/public;
|
root /var/www/public;
|
||||||
|
|
||||||
client_max_body_size 512M;
|
client_max_body_size 1024M;
|
||||||
|
|
||||||
autoindex off;
|
autoindex off;
|
||||||
index index.html index.htm index.php;
|
index index.html index.htm index.php;
|
||||||
|
|||||||
@ -427,7 +427,7 @@ max_input_time = 60
|
|||||||
|
|
||||||
; Maximum amount of memory a script may consume
|
; Maximum amount of memory a script may consume
|
||||||
; http://php.net/memory-limit
|
; http://php.net/memory-limit
|
||||||
memory_limit = 512M
|
memory_limit = 1024M
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
; Error handling and logging ;
|
; Error handling and logging ;
|
||||||
@ -700,7 +700,7 @@ auto_globals_jit = On
|
|||||||
; Its value may be 0 to disable the limit. It is ignored if POST data reading
|
; Its value may be 0 to disable the limit. It is ignored if POST data reading
|
||||||
; is disabled through enable_post_data_reading.
|
; is disabled through enable_post_data_reading.
|
||||||
; http://php.net/post-max-size
|
; http://php.net/post-max-size
|
||||||
post_max_size = 512M
|
post_max_size = 1024M
|
||||||
|
|
||||||
; Automatically add files before PHP document.
|
; Automatically add files before PHP document.
|
||||||
; http://php.net/auto-prepend-file
|
; http://php.net/auto-prepend-file
|
||||||
@ -852,7 +852,7 @@ file_uploads = On
|
|||||||
|
|
||||||
; Maximum allowed size for uploaded files.
|
; Maximum allowed size for uploaded files.
|
||||||
; http://php.net/upload-max-filesize
|
; http://php.net/upload-max-filesize
|
||||||
upload_max_filesize = 512M
|
upload_max_filesize = 1024M
|
||||||
|
|
||||||
; Maximum number of files that can be uploaded via a single request
|
; Maximum number of files that can be uploaded via a single request
|
||||||
max_file_uploads = 100
|
max_file_uploads = 100
|
||||||
|
|||||||
@ -159,7 +159,7 @@
|
|||||||
uploadIng: 0,
|
uploadIng: 0,
|
||||||
uploadFormat: ['jpg', 'jpeg', 'png', 'gif', 'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx', 'txt', 'esp', 'pdf', 'rar', 'zip', 'gz', 'ai', 'avi', 'bmp', 'cdr', 'eps', 'mov', 'mp3', 'mp4', 'pr', 'psd', 'svg', 'tif'],
|
uploadFormat: ['jpg', 'jpeg', 'png', 'gif', 'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx', 'txt', 'esp', 'pdf', 'rar', 'zip', 'gz', 'ai', 'avi', 'bmp', 'cdr', 'eps', 'mov', 'mp3', 'mp4', 'pr', 'psd', 'svg', 'tif'],
|
||||||
actionUrl: $A.apiUrl('system/fileupload'),
|
actionUrl: $A.apiUrl('system/fileupload'),
|
||||||
maxSize: 204800
|
maxSize: 1024000
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|||||||
@ -28,7 +28,7 @@ export default {
|
|||||||
},
|
},
|
||||||
maxSize: {
|
maxSize: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: 204800
|
default: 1024000
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -39,8 +39,8 @@ export default {
|
|||||||
'drawio',
|
'drawio',
|
||||||
'mind',
|
'mind',
|
||||||
'docx', 'wps', 'doc', 'xls', 'xlsx', 'ppt', 'pptx',
|
'docx', 'wps', 'doc', 'xls', 'xlsx', 'ppt', 'pptx',
|
||||||
'jpg', 'jpeg', 'png', 'gif', 'bmp', 'ico', 'raw',
|
'jpg', 'jpeg', 'png', 'gif', 'bmp', 'ico', 'raw', 'svg',
|
||||||
'rar', 'zip', 'jar', '7-zip', 'tar', 'gzip', '7z',
|
'rar', 'zip', 'jar', '7-zip', 'tar', 'gzip', '7z', 'gz', 'apk', 'dmg',
|
||||||
'tif', 'tiff',
|
'tif', 'tiff',
|
||||||
'dwg', 'dxf',
|
'dwg', 'dxf',
|
||||||
'ofd',
|
'ofd',
|
||||||
|
|||||||
@ -19,7 +19,7 @@ export default {
|
|||||||
props: {
|
props: {
|
||||||
maxSize: {
|
maxSize: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: 204800
|
default: 1024000
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -450,8 +450,8 @@ export default {
|
|||||||
'drawio',
|
'drawio',
|
||||||
'mind',
|
'mind',
|
||||||
'docx', 'wps', 'doc', 'xls', 'xlsx', 'ppt', 'pptx',
|
'docx', 'wps', 'doc', 'xls', 'xlsx', 'ppt', 'pptx',
|
||||||
'jpg', 'jpeg', 'png', 'gif', 'bmp', 'ico', 'raw',
|
'jpg', 'jpeg', 'png', 'gif', 'bmp', 'ico', 'raw', 'svg',
|
||||||
'rar', 'zip', 'jar', '7-zip', 'tar', 'gzip', '7z',
|
'rar', 'zip', 'jar', '7-zip', 'tar', 'gzip', '7z', 'gz', 'apk', 'dmg',
|
||||||
'tif', 'tiff',
|
'tif', 'tiff',
|
||||||
'dwg', 'dxf',
|
'dwg', 'dxf',
|
||||||
'ofd',
|
'ofd',
|
||||||
@ -470,7 +470,7 @@ export default {
|
|||||||
'rp',
|
'rp',
|
||||||
],
|
],
|
||||||
uploadAccept: '',
|
uploadAccept: '',
|
||||||
maxSize: 204800,
|
maxSize: 1024000,
|
||||||
|
|
||||||
contextMenuItem: {},
|
contextMenuItem: {},
|
||||||
contextMenuVisible: false,
|
contextMenuVisible: false,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user