PHP - file upload size

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
khawarikhan
Forum Newbie
Posts: 8
Joined: Tue Feb 15, 2005 3:45 pm

PHP - file upload size

Post by khawarikhan »

Hi everyone,
I have a file upload option on my site and right now it allows only 500KB or lesser file sizes to upload.......is this the default setting for the server? Can I increase it somehow? if yes, please guide how to do that.
In the form, I am passing a hidden field of MAX_FILE_SIZE and the value is set to 500000..........I increased this number but it still didn't work with larger than 500K files.
Thanks for help

Khawar
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

the system will use the lesser of the two. If none is provided in the form, the server's setting is used. Read here about it: http://php.net/manual/en/features.file-upload.php
Post Reply