Re: allowing selected file types

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You might want to read up on this:

http://en.wikipedia.org/wiki/Magic_number_%28programming%29

On 7/30/05, Sebastian <sebastian@xxxxxxxxxxxxxxxxxxx> wrote:
> i know i shouldn't rely on mime types for file verification but anyways..
> 
> I use application/zip which works fine on firefox and only allows zips..
> however, on Internet explorer it doesn't work since IE returns
> application/x-zip-compressed for zips.. problem with this is it also
> allow rar files.. so even checking mime types is just as useless as not
> using it.. one mime type allows two different file types. pffft.
> 
> 
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.338 / Virus Database: 267.9.7/60 - Release Date: 7/28/2005
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux