Re: Get FILE NAME and EXTENSION??
| From: | Jason Wong | Date: | Sun, 27 Jan 2002 02:39:06 +0000 |
| Subject: | Re: Get FILE NAME and EXTENSION?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-82263@lists.php.net to get a copy of this message | ||
On Sunday 27 January 2002 11:10, Dani wrote:
> Hi everyone!
>
> I'm trying to put file names into variables which later I put into my
> DB (MySQL) as text (only the filename and the extension).
>
> I tried to use the upload format form before:
> <form ENCTYPE=\"multipart/form-data\" ...>
>
> ....
>
> <input type = FILE name =\"file_name\"....>
>
> .....
>
> When I retrived the value of the variables, I did not get the FILE NAME
> and the file extension.
> What I got is all the path of the file and the file name changed into
> .TMP or some sort.
>
> How do I retrived file names and it's extension in this situation?
Please read the manual chapter "Handling file uploads"
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
/*
"Are you sure you're not an encyclopedia salesman?"
No, Ma'am. Just a burglar, come to ransack the flat."
-- Monty Python
*/