Re: File upload
| From: | val petruchek | Date: | Mon, 21 Jan 2002 16:41:57 +0000 |
| Subject: | Re: File upload | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-81391@lists.php.net to get a copy of this message | ||
> How can I, using:
> <INPUT TYPE=\"FILE\" NAME=\"UPLOAD_FOTO\" SIZE=\"40\">
> specify the file extension.
> I want the user only to upload *.jpg.
You can only check $userfile_type to detect the type of uploaded file. You
can specify nor extension to browse dialog neither default path for
browsing... Security, you know
Valentin Petruchek (aki Zliy Pes)
http://zliypes.com.ua
mailto:val@zliypes.com.ua