note 78189 deleted from features.file-upload by nlopess
| From: | nlopess@php.net | Date: | Thu, 11 Oct 2007 22:30:25 +0000 |
| Subject: | note 78189 deleted from features.file-upload by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-131321@lists.php.net to get a copy of this message | ||
Note Submitter: hplattek+nospamformeplease at gmail dot com
----
Regarding the note by <ash at atomic-network dot co dot uk> below, why not just search for the
'image/' part of the MIME?
Like so:
<?php
if(substr($_FILES['daImg']['type'],'image/') &&
$_FILES['daImg']['size']<100000){
//do something if file type is image and size less than 100k...
}
?>