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.
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.
`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.
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.