note 78189 added to features.file-upload
| From: | hplattek+nospamformeplease at gmail dot com | Date: | Tue, 02 Oct 2007 15:04:53 +0000 |
| Subject: | note 78189 added to features.file-upload | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-130985@lists.php.net to get a copy of this message | ||
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...
}
?>
----
Server IP: 69.147.83.197
Probable Submitter: 200.244.61.135
----
Manual Page -- http://www.php.net/manual/en/features.file-upload.php
Edit -- https://master.php.net/note/edit/78189
Del: integrated -- https://master.php.net/note/delete/78189/integrated
Del: useless -- https://master.php.net/note/delete/78189/useless
Del: bad code -- https://master.php.net/note/delete/78189/bad+code
Del: spam -- https://master.php.net/note/delete/78189/spam
Del: non-english -- https://master.php.net/note/delete/78189/non-english
Del: in docs -- https://master.php.net/note/delete/78189/in+docs
Del: other reasons-- https://master.php.net/note/delete/78189
Reject -- https://master.php.net/note/reject/78189
Search -- https://master.php.net/manage/user-notes.php