max_file_size

Discussion in 'Install/Configuration' started by anewday, Apr 22, 2008.

  1. anewday

    anewday Moderator

    Code:
    [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.
    Last edited: Apr 22, 2008
  2. PSS

    PSS Member

    Just a hunch, perhaps tmp folder was unavailable or full.
    Is the php.ini with 50M the one LS reads?
    Last edited: Apr 22, 2008
  3. anewday

    anewday Moderator

    Yes, all my php.ini are the same. /tmp is only 34% used, strange why I was able to upload a 3mbyte attachment.
  4. mistwang

    mistwang LiteSpeed Staff

    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.
  5. anewday

    anewday Moderator

    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
    Last edited: Apr 22, 2008
  6. mistwang

    mistwang LiteSpeed Staff

    should be post_max_size
  7. PSS

    PSS Member

    These affect uploads, at least

    memory_limit
    upload_max_filesize
    post_max_size
    max_execution_time
    upload_tmp_dir

Share This Page