File uploading

File uploading

Sunday 23 July 2006 6:02:04 am - 2 replies

Author Message

Patrick Kaiser

Monday 24 July 2006 3:26:51 am

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

Roy Jonse

Tuesday 01 August 2006 1:23:56 am

Thanks,

The issue was solved after I changed the post_max_size in the php.ini

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.