折腾 UCHome @ DiscuzX! 上传图片限制
传大图片
有时候提示 “上传失败 无法获取上传文件大小”
有时候 提示 "提示不能转移文件到临时目录"
参考:
基本就是增大 upload_max_filesize, 这项设置直接影响到后台 首页能看到的 系统信息 中的 上传许可;
另外还调整了 max_input_time post_max_size max_execution_time ,
不需要将 /data/attachment/ 目录设置 777 ,这样有严重的风险,保持0755;
]# grep max /etc/php.ini | grep ^[^\;]
max_execution_time = 300 ; Maximum execution time of each script, in seconds
max_input_time = 600 ; Maximum amount of time each script may spend parsing request data
log_errors_max_len = 1024
post_max_size = 28M
upload_max_filesize = 20M
odbc.max_persistent = -1
odbc.max_links = -1
mysql.max_persistent = -1
mysql.max_links = -1
mysqli.max_links = -1
msql.max_persistent = -1
msql.max_links = -1
pgsql.max_persistent = -1
pgsql.max_links = -1
sybase.max_persistent = -1
sybase.max_links = -1
sybct.max_persistent = -1
sybct.max_links = -1
ifx.max_persistent = -1
ifx.max_links = -1
session.gc_maxlifetime = 1440
mssql.max_persistent = -1
mssql.max_links = -1
阅读(2998) | 评论(0) | 转发(0) |