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.

Regards
Russ Michaels
www.michaels.me.uk
www.cfmldeveloper.com - Free CFML hosting for developers
www.cfsearch.com - CF search engine
On Dec 19, 2012 11:53 PM, "Rob Voyle" <[email protected]> wrote:

>
> 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
> The MIME type of the uploaded file image/jpeg was not accepted by the
> server.
>
> If I delete the " accept = "image/jpg" " it works fine.
>
> also is there a way to determine the name of the file to be uploaded
> before it
> actually does the upload "fileUpload" gives a "neotmp    .tmp" which
> doesn't
> allow testing of the extension before it is up loaded?
>
> Thanks
> rob
> Robert J. Voyle, Psy.D.
> Director, Clergy Leadership Institute
> For Coaching and Training in Appreciative Inquiry
> Author: Restoring Hope: Appreciative Strategies
>              to Resolve Grief and Resentment
> http://www.appreciativeway.com/
> 503-647-2378 or 503-647-2382
>
>
>
> 

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

Reply via email to