[thelist] Validating Mime Type of Uploads
Dejan Kozina
dejan at kozina.com
Wed Mar 28 20:51:04 CDT 2007
A quick and dirty check is indeed possible: all PDF files start with the
string %PDF-1.x (where 1.x is the PDF version).
djn
kasimir-k wrote:
> Randal Rust scribeva in 28/03/2007 14:05:
>> ... trying to do form uploads, and one of the things I do is validate that
>> the MIME type is correct.
> ...
--
-----------------------------------------
Dejan Kozina Web design studio
Dolina 346 (TS) - I-34018 Italy
tel./fax: +39 040 228 436 - cell.: +39 348 7355 225 skype: dejankozina
http://www.kozina.com/ - e-mail: dejan at kozina.com
More information about the thelist
mailing list