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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to