image uploading (>2mb) issue in server

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
vathsala
Forum Newbie
Posts: 1
Joined: Thu Apr 09, 2009 12:33 am

image uploading (>2mb) issue in server

Post by vathsala »

how to upload large image file (>2mb) using php in server?

uploading is working fine in localhost.but in webserver larger file are not uploaded.. giving blank page... & some times gives error message as "The specified CGI application misbehaved by not returning a complete set of HTTP headers"

what's this error? is there any settings to be done to upload large image file (>2mb) successfully?

any one in this forum can help me???

Thanx in advance..
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: image uploading (>2mb) issue in server

Post by jaoudestudios »

Yes there are settings that need changing.

By default the max file upload apache allows is 2MB.

You can change the max upload file and max post size in php.ini file.
Post Reply