码迷,mamicode.com
首页 > Web开发 > 详细

Uploadify 上传失败

时间:2016-09-02 13:32:36      阅读:252      评论:0      收藏:0      [点我收藏+]

标签:

更改Apache的php.ini的配置

In my php.ini (created custom ini file in public_html) would this solve this problem, how much would I have to set it to around 1GB? I am going to change my settings to this in php.ini, will it solve the problem?

upload_max_filesize = 1000M ;1GB
post_max_size = 1000M

What would I set the ‘memory_limit‘ limit to.

Also would this be correct in my script to check file uploaded size is <1GB

if($_FILES["uploadedfile"]["size"]<1000000)
 
Try pasting this to .htacces and it should work. 
php_value post_max_size 2000M 
php_value upload_max_filesize 2500M 
php_value max_execution_time 6000000 
php_value max_input_time 6000000 
php_value memory_limit 2500M
 
 

In Some cases, you need to increase the maximum execution time.

max_execution_time=30

I made it

max_execution_time=600000
 
如果中文上传失败,则进行上传文件重命名

Uploadify 上传失败

标签:

原文地址:http://www.cnblogs.com/dong-blog/p/5833055.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!