note 47026 deleted from features.file-upload by betz
| From: | betz@php.net | Date: | Mon, 08 Nov 2004 10:02:50 +0000 |
| Subject: | note 47026 deleted from features.file-upload by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-80273@lists.php.net to get a copy of this message | ||
Note Submitter: valentino_r [at] elav-web [dot] net
----
For compare the type of files, I using this code:
<?php
$Array_Type_Image = Array ("image/gif", "image/jpeg", "image/pjpeg",
"image/x-png");
if (In_Array($_FILES["file_name"]["type"], $Array_Type_Image) ) {
// OK
} else {
// No OK
}
?>
Bye