javascript checking is not very secure and specially file-extension
checking.
You can do some sort of javascript check to do a client side validation,
but the cffile check is a little more thorough as it checks the file if it
is the correct mime-type, even if you rename the extension if I'm not wrong.

You should do some basic error handling if the mime-type check throws an
coldfusion error and you should be golden.

Good luck, Mike

2012/12/20 Rob Voyle <robvo...@voyle.com>

>
> Hi Folks
>
> Adding the "accept" doesn't really work as it triggers a CF error message
>
> I want to interupt the process before that .
> I don't know ajax or a way to access the file name before it gets
> converted to a
> tmp file
>
> Rob
>
> On 19 Dec 2012 at 16:16, Rob Voyle wrote:
>
> >
> > Hi Russ
> >
> > Thanks
> > needed accept = "image/jpeg" not jpg
> >
> > Rob
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353551
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to