Jump to content

PHP File upload size being ignored


Recommended Posts

Hello folks

 

This is not an urgent problem and I already made a workaround for it. I just wonder if somebody knows what causing it.

So you cannot upload big files eg 10-20mb files with a test upload script to your server.

 

You already set

 

post_max_size = 30M

upload_max_filesize = 27M

memory_limit = 128M

 

In your php.ini but still not help.

There is NO error messages in the webserver's access logs and debugging the file upload won't help either.

 

The solution is adding these to the htaccess file:

 

php_value upload_max_filesize 25M

php_value post_max_size 25M

php_value max_execution_time 2000

php_value max_input_time 2000

 

 

So what I want to know why are the global config options ignored and it only works this way? (yes I edited the proper global php.ini)

 

Link to comment
Share on other sites

  • 1 month later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.