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

Reply via email to