Forums / Setup & design / File uploading / Comment22653

Author Topic

Patrick Kaiser

Monday 24 July 2006 3:26:51 am

Comment22653

there are several configuration directives that affect file uploading in php.ini.

The following two settings directly affect the max allowed filesize. if you want to allow file uploads up to 50 MB set it to 51M since there seems to be some overhead (from other form-fields for example)
post_max_size 51M
upload_max_filesize 51M

if theese to settings are set to low the script may terminate before the file upload is finished:
max_execution_time 120
max_input_time 240

if you compiled php with --enable-memory-limit than you have to ensure that memory_limit is not set too low as well (although you dont have to set it to the same size as post_max_size).

hope that helps..

patrick


Best regards,

Patrick