uploads

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
tintin
Forum Newbie
Posts: 13
Joined: Fri Dec 13, 2002 7:13 am

uploads

Post 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.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Best place to start is here:
http://php.net/manual/en/features.file-upload.php

Mac
tintin
Forum Newbie
Posts: 13
Joined: Fri Dec 13, 2002 7:13 am

Post by tintin »

Thank you for the link.
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post 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
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Sami wrote:btw make sure register globals = on in your php.ini
Why?

Mac
Post Reply