Page 1 of 1

uploads

Posted: Wed May 28, 2003 5:13 am
by tintin
I try to upload, using this form :
<form name=form action=TestUpload.php enctype="multipart/form-data" method=post>
<input type=hidden name=Id value=20>
<input type=hidden name=MAX_FILE_SIZE value=10000>
<input type=file name=UploadedFile size=50>
<input type=submit value="Send">

With php 4.2.3, I was able to find in $_REQUEST['UploadedFile'] the file informations to process the request, but with 4.3.1 there is nothing.

Is there anything changed ? I read here about HTTP_FILES_VAR ? Is it new ? I can't find it in the whole documentation.

Thanks for help.

Posted: Wed May 28, 2003 5:15 am
by twigletmac
Best place to start is here:
http://php.net/manual/en/features.file-upload.php

Mac

Posted: Sat May 31, 2003 5:04 am
by tintin
Thank you for the link.

Posted: Sat May 31, 2003 5:43 am
by m3mn0n
I'd use the $_FILES superglobal to make it easier to know what type of Request it is.


btw make sure register globals = on in your php.ini


more info here

Posted: Sat May 31, 2003 1:20 pm
by twigletmac
Sami wrote:btw make sure register globals = on in your php.ini
Why?

Mac