macromedia.coldfusion.cfml_general_discussion
[Top] [All Lists]

Re: Detect image type

Subject: Re: Detect image type
From: Azadi <azadi@xxxxxxxxxxxxx>
Date: Tue, 29 Jul 2008 00:04:56 -0400
Newsgroups: macromedia.coldfusion.cfml_general_discussion

cffile.serverfileext is easier and faster, but it just reads the
uploaded extension - it does not guarantee the file is actually of that
type. i.e. if i reame my .exe file to .gif and uploaded it, it will
report .gif as extension.

so yes, use the new cf8 image manipulation functions if you must verify
the file is an image.


Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/

<Prev in Thread] Current Thread [Next in Thread>