PHP maximum upload

Discussion in 'Programming/Scripts' started by dayjahone, Dec 30, 2007.

  1. dayjahone

    dayjahone Member

    Where do I change the maximum file size for upload via a php form? I adjusted this once before, but I don't know where it is...

    The problem I'm having is the form accepts attachments, but the attachment is sent as a 0K file.
  2. Hans

    Hans Moderator ISPConfig Developer

    please modify the value for post_max_size within your php.ini file.
  3. devnull3d

    devnull3d New Member

    Correct me if I'm wrong but isn't it upload_max_filesize ? post_max_size is the maximum amount of data php scripts can accept thru POST. Even though files are uploaded with POST the two directives are little bit different.
  4. Hans

    Hans Moderator ISPConfig Developer

    `upload_max_filesize` is the sum of all the files, which you upload at once. `post_max_size` is the upload_max_filesize + the sum of the length of all other fields within the form you use (incl. mime headers, which the encoder probably contains). So you can increase the value for both.
  5. white.wizard

    white.wizard New Member

    You can edit this flag with ini_set() function from php or you can use an .htaccess file. This will help if you have an webhosting account and you can't edit you php.ini file.

Share This Page