strange file upload problem

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
mcog_esteban
Forum Contributor
Posts: 127
Joined: Tue Dec 30, 2003 3:28 pm

strange file upload problem

Post by mcog_esteban »

hi..can some help me with this.

i have a form with 4 <input type="file">, and i'm setting the an hidden field MAX_FILE_SIZE to 30000000 for testing purposes.

if i upload a single file with size 0f 10000000, everything work ok, but if a try to upload two files with the same size(10 000 000), i get redirected to some other page.

does this has something to do with the value that is set in the php.ini for uploaded files?

thanks.
kettle_drum
DevNet Resident
Posts: 1150
Joined: Sun Jul 20, 2003 9:25 pm
Location: West Yorkshire, England

Post by kettle_drum »

Without seeing the code its hard to tell. It could be anything.
User avatar
xisle
Forum Contributor
Posts: 249
Joined: Wed Jun 25, 2003 1:53 pm

Post by xisle »

run phpinfo() and check the value of 'upload_max_filesize'
that will answer your question about the .ini
mcog_esteban
Forum Contributor
Posts: 127
Joined: Tue Dec 30, 2003 3:28 pm

Post by mcog_esteban »

hi...
i have this on the form <input type="hidden" name="MAX_FILE_SIZE" value=30000000>
in php.ini i have the variable max_upload_filesize od something set to 50M.

now the interesting part:
i want to upload 4 files simultaneously....if i upload 1 file of 10M, there's no problem.
if i try to upload two files with 10M...i get redirected to a back page.
if i upload 4 files with 3M everything works well again.
Post Reply