upload_max_filesize or max_post_size

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • pittendrigh

    upload_max_filesize or max_post_size

    If I want to control (max) upload file size
    on a Suse10.2 box running php5.0.3,
    in php.ini, does max_post_size matter?
    Or is upload_max_file size the only relevant
    directive?

  • Kim André Akerø

    #2
    Re: upload_max_file size or max_post_size

    pittendrigh wrote:
    If I want to control (max) upload file size
    on a Suse10.2 box running php5.0.3,
    in php.ini, does max_post_size matter?
    Or is upload_max_file size the only relevant
    directive?
    Both come into play, actually.

    upload_max_file size controls the maximum size of each uploaded file.


    post_max_size controls the maximum amount of data that can be
    transferred by the post method.


    As the manual for post_max_size says:
    "This setting also affects file upload. To upload large files, this
    value must be larger than upload_max_file size."

    --
    Kim André Akerø
    - kimandre@NOSPAM betadome.com
    (remove NOSPAM to contact me directly)

    Comment

    Working...