This is a discussion on php.ini & uploading files within the PHP Language forums, part of the PHP Programming Forums category; Hello, I have a problem: I want to increase the "upload_max_filesize" to upload bigger than 2Mb files. I ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello,
I have a problem: I want to increase the "upload_max_filesize" to upload bigger than 2Mb files. I have modified the php.ini file, but php continues applying the previos 2Mb limit. What I'm doing wrong, please? Thanks in advance, Federico |
|
|||
|
Federico wrote:
> > Hello, > > I have a problem: I want to increase the "upload_max_filesize" to > upload bigger than 2Mb files. I have modified the php.ini file, but > php continues applying the previos 2Mb limit. What I'm doing wrong, > please? From php.net manual: post_max_size integer Sets max size of post data allowed. This setting also affects file upload. To upload large files, this value must be larger than upload_max_filesize. If memory limit is enabled by your configure script, memory_limit also affects file uploading. Generally speaking, memory_limit should be larger than post_max_size. Don't know if that helps or not, Shawn -- Shawn Wilson shawn@glassgiant.com http://www.glassgiant.com I have a spam filter. Please include "PHP" in the subject line to ensure I'll get your message. |
|
|||
|
Make sure you're editing the right file. It's especially easy to get it
wrong on Windows. When I make a change to php.ini, I usually do a <? phpinfo() ?> to ensure the changes have taken effect. Uzytkownik "Federico" <fedeabascal@yahoo.es> napisal w wiadomosci news:3c22661.0401150725.2aac453b@posting.google.co m... > Hello, > > I have a problem: I want to increase the "upload_max_filesize" to > upload bigger than 2Mb files. I have modified the php.ini file, but > php continues applying the previos 2Mb limit. What I'm doing wrong, > please? > > Thanks in advance, > Federico |