网页代码,装入Uploadify控件:
问题:大文件上传,错误
Uploadify small file to MySQL, good; (3M小文件上传,没有问题)
Uploadify big file to MySQL, error: (100M大文件上传,错误)
思路:
1)可能在某个地方设定了限定上传文件大小
2)上传文件需要时间,可能在某个地方设定了限定上传文件的时间
1. 检查PHP ini (问题在于PHP配置文件设定里)
echo ini_get(‘upload_max_filesize‘)."
";
>2048M (此设置没有问题)
echo ini_get(‘post_max_size‘);
>1024M (此设置没有问题)
max_execution_time = 300 改为 3000
max_input_time = 60 改为 600
memory_limit = 128M 改为 1280M
(after change to the red, restart IIS …. upload big file …. 修改以上参数之后,上传文件就没有问题了)
2. 检查mysql 设置(没有问题)
mysql> show VARIABLES like‘%max_allowed_packet%‘;
+--------------------------+------------+
| Variable_name | Value |
+--------------------------+------------+
| max_allowed_packet | 1073741824 |
| slave_max_allowed_packet | 1073741824 |
+--------------------------+------------+
2 rows in set (0.00 sec)
3. 检查IIS configuration (IIS配置,没有问题)
4. 检查PHP ini设置
echo ini_get(‘upload_max_filesize‘)."
";
>2048M
echo ini_get(‘post_max_size‘);
>1024M
max_execution_time = 300 改为 3000
max_input_time = 60 改为 600
memory_limit = 128M 改为 1280M
(after change to the red, restart IIS …. upload big file …. good! 修改以上参数之后,上传文件就没有问题了)