PDA

View Full Version : max_file_size


anewday
04-21-2008, 05:25 PM
[90.x.x.x:3364-0#APVH_forum...........com] [STDERR] PHP Warning: MAX_FILE_SIZE of 500000 bytes exceeded - file [upload_photo=D:\Documents and Settings\John Doe\My Documents\My Pictures\abcdefgh[1].jpg] not saved in Unknown on line 0

I noticed that on the error_log. I just tried to upload a 3mbyte attachment on my forum and it worked without showing anything on the error_log.

upload_max_filesize = 50M is already set in php.ini.

PSS
04-21-2008, 05:34 PM
Just a hunch, perhaps tmp folder was unavailable or full.
Is the php.ini with 50M the one LS reads?

anewday
04-21-2008, 05:38 PM
Yes, all my php.ini are the same. /tmp is only 34% used, strange why I was able to upload a 3mbyte attachment.

mistwang
04-22-2008, 08:39 AM
It is a PHP error, has nothing to do with LSWS.
There is a "max_post_size" configuration may affect this. Please check your php configuration with a phpinfo() page.

anewday
04-22-2008, 11:25 AM
phpinfo doesn't show max_post_size What other derivatives could affect the size of file uploads?

http://bytes.com/forum/thread567382.html

Confused which is the proper one to use?

post_max_size
or
max_post_size

mistwang
04-22-2008, 11:29 AM
should be post_max_size

PSS
04-23-2008, 04:24 AM
These affect uploads, at least

memory_limit
upload_max_filesize
post_max_size
max_execution_time
upload_tmp_dir