You are here: Re: [PHP] allowing selected file types « PHP « IT news, forums, messages
Re: [PHP] allowing selected file types

Posted by Andr� Medeiros on 07/30/05 20:40

You might want to read up on this:

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

On 7/30/05, Sebastian <sebastian@broadbandgaming.net> 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
>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация