Size of Uploaded file

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
Gopesh
Forum Contributor
Posts: 143
Joined: Fri Dec 24, 2010 12:48 am
Location: India

Size of Uploaded file

Post by Gopesh »

what is maximum size of file uploaded in the server in PHP? can we change it by editing php.ini file?
User avatar
Darhazer
DevNet Resident
Posts: 1011
Joined: Thu May 14, 2009 3:00 pm
Location: HellCity, Bulgaria

Re: Size of Uploaded file

Post by Darhazer »

Yes, you can change it. Pay attention to
upload_max_size
post_max_size (should be bigger than upload_max_size)
memory_limit

Also, if you are planning to upload large files, I would recommend you using uploadify or another flash-uploader on the client side (so you can provide user with progress bar)
fugix
Forum Contributor
Posts: 207
Joined: Fri Mar 18, 2011 8:01 pm

Re: Size of Uploaded file

Post by fugix »

default max_upload_size is 2M
Gopesh
Forum Contributor
Posts: 143
Joined: Fri Dec 24, 2010 12:48 am
Location: India

Re: Size of Uploaded file

Post by Gopesh »

Thanks Darhazer and fugix for the reply...
fugix
Forum Contributor
Posts: 207
Joined: Fri Mar 18, 2011 8:01 pm

Re: Size of Uploaded file

Post by fugix »

glad we could help
Post Reply