View Full Version : PHP maximum upload
dayjahone
30th December 2007, 23:52
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.
Hans
31st December 2007, 01:56
please modify the value for post_max_size within your php.ini file.
devnull3d
16th January 2008, 13:06
please modify the value for post_max_size within your php.ini 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.
Hans
16th January 2008, 14:41
`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.
white.wizard
17th January 2008, 20:42
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.
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.