note 77782 added to features.file-upload

From: Date: Wed, 12 Sep 2007 20:30:58 +0000
Subject: note 77782 added to features.file-upload
Groups: php.notes 
Request: Send a blank email to php-notes+get-130439@lists.php.net to get a copy of this message
I rather check the imagetype with getimagesize. <4 and != 0 equals jpg, gif, png. Also it already gives you a chance to store other interesting data about the images. php.ini vars that deal with size that need to be checked are -max upload filesize -max post data size -memory limit (for script to use) My suggestion is to keep the two latter greater then the upload file size limit to be able to give back some user errors. When POST data size get exceeded it just doesn't run the script that is set to run at application of a form. So ---- Server IP: 83.137.20.107 Probable Submitter: 85.145.136.232 ---- Manual Page -- http://www.php.net/manual/en/features.file-upload.php Edit -- https://master.php.net/note/edit/77782 Del: integrated -- https://master.php.net/note/delete/77782/integrated Del: useless -- https://master.php.net/note/delete/77782/useless Del: bad code -- https://master.php.net/note/delete/77782/bad+code Del: spam -- https://master.php.net/note/delete/77782/spam Del: non-english -- https://master.php.net/note/delete/77782/non-english Del: in docs -- https://master.php.net/note/delete/77782/in+docs Del: other reasons-- https://master.php.net/note/delete/77782 Reject -- https://master.php.net/note/reject/77782 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#130439) next »