Page 1 of 1

strange file upload problem

Posted: Thu Oct 28, 2004 10:42 am
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.

Posted: Thu Oct 28, 2004 1:07 pm
by kettle_drum
Without seeing the code its hard to tell. It could be anything.

Posted: Thu Oct 28, 2004 2:28 pm
by xisle
run phpinfo() and check the value of 'upload_max_filesize'
that will answer your question about the .ini

Posted: Thu Oct 28, 2004 6:58 pm
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.