Uploading files larger than 1 mb while upload_max_file = 2mb

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
rcjazz
Forum Newbie
Posts: 1
Joined: Thu Jul 10, 2003 6:44 am

Uploading files larger than 1 mb while upload_max_file = 2mb

Post by rcjazz »

Can somebody please help me with the following. Im running PHP Version 4.3.2 on apache 1.3.27. i cant upload files larger then 1 mb.
my php.ini settings are:

post_max_size 8M
upload_max_filesize 2M

i tested on 2 servers both running the same configuration one has a memory limit 8M the other one memory_limit is not set.

When trying to upload i get something like, cant find page.

Files smaller then 1 mb work fine.

Please help, Thanx
User avatar
DuFF
Forum Contributor
Posts: 495
Joined: Tue Jun 24, 2003 7:49 pm
Location: USA

Post by DuFF »

The only possibility that I can think of is that it may be a problem of the script timing out. Try editing PHP.ini's max_execution_time to a longer time.

If it still doesn't work try a couple ideas from this page, especially the user comments. They can be extremely helpful sometimes.
Post Reply