I've never spent the time to look at file types too much. The file you're uploading is probably of the type application/octet-stream. To see for sure, remove the accept attribute, add a cfdump of the CFFILE scope and upload the same file and check to see what it is. It's not as simple as just the file extension. Would be great if someone who knew for sure answered though.
Ade -----Original Message----- From: Colin Coles [mailto:[EMAIL PROTECTED] Sent: 08 March 2005 11:29 To: CF-Newbie Subject: Application/rtf error I have a cffile upload which accepts only rtf files. The code on the action form is: <cffile action="upload" filefield="Form.file_upload" destination="D:\inetpub\wwwroot\etc..." accept="application/rtf"> When I attach an rtf file I get the message: The MIME type of the uploaded file "application/octet-stream" was not accepted by the server. Only files of type "application/rtf" can be uploaded. Verify that you are uploading a file of the appropriate type. The code on the uplolad form itself is: <head><title>ICTMT-7 Upload File Form</title> <InvalidTag http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> ........ <cfform action="uploadaction.cfm" method="post" enctype="multipart/form-data"> Can someone explain what application/octet-stream is and why it appears in the error message when it is not included in the accept definitions? Would be enormously grateful, as ever. -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.6.4 - Release Date: 07/03/2005 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Sams Teach Yourself Regular Expressions in 10 Minutes by Ben Forta http://www.houseoffusion.com/banners/view.cfm?bannerid=40 Message: http://www.houseoffusion.com/lists.cfm/link=i:15:730 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
