Large file uploads

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
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Large file uploads

Post by superdezign »

I have a simple upload script that works fine until we get in the range of megabytes. i.e. *.jpg files work fine, *.bmp files do not.

phpinfo() has confirmed that upload_max_filesize = 10M in php.ini, yet I can't upload an 8MB file.

I even tried adding <input type="hidden" name="MAX_FILE_SIZE" value="10000000"> to the form, and still no luck.


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

Post by feyd »

What does the error field in the array tell you?
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

I'm not getting an error. The only time I get an error is if I lower MAX_FILE_SIZE

However, I do believe I may have solved my own problem. post_max_size is actually 8M
Post Reply