I'm wondering if there is a code for functions.php
that can increase upload size for files once is required by user session. I need to increase this limit only when the user requests to upload a file, not in the php.ini
or .htaccess
as general rule (for security issues).
Example: A user must upload one file of 250 MB or 5 files of 50 MB without having time outs.
My .htaccess
limits are:
php_value upload_max_filesize 16M
php_value post_max_size 16M
php_value max_execution_time 300
php_value max_input_time 300
I'm using Wordpress 4.4.2 with Genesis Child theme.
I need some code in functions.php
that can increase temporarily this limit on session start of each upload request. Thank you for you time! Hope to find someone that know this trick.
Cheers! :-) Daniel