I am having an issue with an app I just just inherited and was hoping someone could help shed some light.
User uploads a .docx file using cffile. The filename, binary contents, contentType and contentSubtype are saved in a database table. The same docx file uploaded at different times...one has a contentsubtype of "vnd.openxmlformats-officedocument.wordprocessingml.document" and the other is just "octet-stream". Another page queries the info from the table and is trying to display the file using cfheader and cfcontent as such <cfheader name="Content-Disposition" value="attachment; filename=#file_name#"> <cfcontent variable="#file_contents#" type="#content_type#"> Neither of the above contentTypes will open correctly For both file formats, I get the dialogue like the attached. If I try to then select Word to use to open either file, then encoding is all goofed up and its just a mess. Doc files work just fine. any thoughts? gracias. Mark -- You received this message because you are subscribed to the "Houston ColdFusion Users' Group" discussion list. To unsubscribe, send email to [email protected] For more options, visit http://groups.google.com/group/houcfug?hl=en
<<attachment: retreat.JPG>>
