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
https://forums.phpfreaks.com/topic/214667-php-file-upload-size-being-ignored/
Share on other sites

  • 1 month later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.