Re: Securing File Uploads Was: Is it possible to test an uploaded file to check the type?

From: Date: Sat, 19 Jul 2003 05:58:55 +0000
Subject: Re: Securing File Uploads Was: Is it possible to test an uploaded file to check the type?
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-155872@lists.php.net to get a copy of this message
Jason Wong wrote:
In a response to your previous posts on this matter, I suggested that you search freshmeat/sourceforge for a PHP-based media file metadata extractor (yes one does exist). I'm putting forward the same suggestion again. Ok, Ill look, but not sure what good it will do me, as Im already reading a file's metadata (using my own code).
Im basing my assumption, on that binary data may share so called "magic" bytes. Like an mpeg header (11111111111) may/or may not appear in other file formats. (Purely an assumption as of this moment) But thanks for reminding me on the other code...

« previous php.general (#155872) next »