Hi Russ

Thanks
needed accept = "image/jpeg" not jpg

Rob

On 19 Dec 2012 at 23:57, Russ Michaels wrote:

> 
> Just add that mime type to the accept list and it will work.
> 
> You could extract the filename from the file field and send it to
> the
> server in advance using ajax.
> 
> >
> > Hi Folks
> >
> > I am using CF9 creating a form to upload images to website.
> >
> > <cffile action="upload"
> >      fileField="fileUpload"
> >           result="outcome"
> >           accept = "image/jpg"
> >           nameConflict = "overwrite"
> >      destination="#mediaPath#">
> >
> > I have a photo.jpg which gets the error



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:353549
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to