Jump to content

php file upload (limit)


westman

Recommended Posts

  • 7 months later...

Hello everyone,

I hate to reopen this but in the last few days I have noticed that my upload is not working and it's also very slow before failing after 2-3 minutes.

 

I have not change my code but i have changed phpinfo.php

 

In my phpinfo.php I now have...

 

max_execution_time 7200

max_file_uploads 20

max_input_nesting_level 64

max_input_time 7200

memory_limit 221M

post_max_size 220M

upload_max_filesize 220M

 

any help?

Edited by westman
Link to comment
Share on other sites

Have you tried to check if your web-hosting server is preventing large files. Forexample all basic free hosts have PHP upload maxfile size few mb.

 

do phpinfo(); at some of your webpage and check if the web-host isn't preventing that.

 

My php upload file code looks like this

$_FILES['<myfile>']['size']/1024/1024) <= 30  //30MB
  • Check PHP.ini
  • .htaccess
  • phpinfo();

Link to comment
Share on other sites

  • .htaccess is empty
  • phpinfo(); i posted
  • PHP5.ini looks like this...

register_globals = off
allow_url_fopen = off
expose_php = Off
max_input_time = 60
variables_order = "EGPCS"
extension_dir = ./
upload_tmp_dir = /tmp
precision = 12
SMTP = relay-hosting.secureserver.net
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
memory_limit = 221M
post_max_size = 220M
file_uploads = On
upload_max_filesize = 220M
max_execution_time = 7200
max_input_time = 7200
session.gc_maxlifetime = 10800
Link to comment
Share on other sites

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...