Re: Determining file types of uploaded files
| From: | Philip Hallstrom | Date: | Thu, 20 Sep 2001 22:08:53 +0000 |
| Subject: | Re: Determining file types of uploaded files | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-68082@lists.php.net to get a copy of this message | ||
read: http://www.php.net/manual/en/features.file-upload.php
You either want:
$userfile_type
or
$HTTP_POST_FILES['userfile']['type']
-philip
On Thu, 20 Sep 2001, Ezra Freedman wrote:
> Is there a way to determine the file type of a file uploaded via an <INPUT
> TYPE="file"> form?
> I know that getimagesize() tells you if a file is a GIF, JPG or PNG -- I'm
> interested in determining if a file is a valid PDF or valid Word document.
>
> Thanks for the help.
> Ezra
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>