[PHP-DB] image upload -> mime types??

2001-05-18 Thread matthew knight
i've created an application where users can upload images through the form upload, and to ensure that they are sending me an image, i take a look at the type of the file (ie. $uploadedfile_type), which usually returns something like image/x-png however.. not always.. so secondly, i check for a

Re: [PHP-DB] image upload -> mime types??

2001-05-21 Thread Jens Nedal
Hy, First of all i would not allow upload of any graphical files without extensions, like it is allowed on a Mac. The reason for this is that graphical fiels without a certain extension like *.gif *.jpg *.png will mostly not be recognized by any browser as some graphic. A suggestion would be onl

Re: [PHP-DB] image upload -> mime types??

2001-05-21 Thread bill
Hi Matthew, I ignore both the mime-type and the extension, and assume mistakes (sooner or later) by the user. Running getimagesize() on the file will show what image type it is by actually looking at the file. If it isn't one of those types, I delete it. If it is a correct type, I force the c

RE: [PHP-DB] image upload -> mime types??

2001-05-21 Thread Gary Pullis
ilto:[EMAIL PROTECTED]] > Sent: Monday, May 21, 2001 3:26 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP-DB] image upload -> mime types?? > > > Hy, > > First of all i would not allow upload of any graphical files without > extensions, like it is allowed on a Mac. The