Fw: [PHP] Identifying input type="file"
| From: | Ron Dyck | Date: | Wed, 09 May 2001 17:01:25 +0000 |
| Subject: | Fw: [PHP] Identifying input type="file" | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-52148@lists.php.net to get a copy of this message | ||
> > I need to identify the particular name of a file upload type field:
<input
> > type='file' name='image1'>
> >
>
> when a file is uploaded it creates an array in the $HTTP_POST_VARS array,
> called $HTTP_POST_FILES. If you have track_vars enabled, you can access
the
> name of the uploaded file on the local filesystem in the example given
with
> the variable $image1_name. So if you uploaded a file named "myGif.gif"
using
> the file select field shown above, this:
>
Because of the nature of the form I don't know the name of the form element.
But I was able to identify it through $HTTP_POST_FILES.
Thanks
ron