If you upload a large file, one of the more important php.ini settings is max_execution_time. To only change this setting for specific actions one could try to use set_time_limit() at the beginning of those actions that expect large $_POST data. But this will not work: The script will always time out, before the first line of code is run. So there’s no way to increase execution time from inside the script for large uploads.
Does anyone object to this? I just want to make sure i’m not overlooking something. So if someone disagrees, let me know.
One workaround i see, would be to use a .htaccess file with some php_value inside specific <Location> directives for the upload URL.