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
superdezign
DevNet Master
Posts: 4135 Joined: Sat Jan 20, 2007 11:06 pm
Post
by superdezign » Tue Jan 23, 2007 10:19 am
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?
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Tue Jan 23, 2007 10:23 am
What does the error field in the array tell you?
superdezign
DevNet Master
Posts: 4135 Joined: Sat Jan 20, 2007 11:06 pm
Post
by superdezign » Tue Jan 23, 2007 10:26 am
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