Nginx+php-fpm对附件默认的设置都很小, 需要改动配置实现想的附件尺寸。修改nginx.conf和php.ini实现
nginx.conf
client_max_body_size 100m; #限制100M
php.ini
max_execution_time = 600
max_input_time = 600
memory_limit = 1024m
file_uploads = on #默认Off ,改为 On
upload_tmp_dir = /tmp
upload_max_filesize = 100m #设置成nginx的client_max_body_size
post_max_size = 100m #设置成nginx的client_max_body_size