I am using the following code to display/download files. During the upload I use file.ContentType & "/" & file.ContentSubType to set the mime type. This method allows me to upload, view and download html, gif, jpg, doc, pdf and exe files without any problems. However, I am having some troubles with viewing zip files. I can download (I mean save to local disk and open the zip file from there) with no problem, but if I try to view the zip files directly (by choosing "open" rather that "save" in IE's file download window) the zip file does not open currently. The correct filenames are displayed in the zip file but there icons are missing, and when I click on a file in the zip file nothing happens. Also when trying to extract the files from the zip file, I get the error "no files to extract."
Any idea you may have to help me solve this problem would be most appreciated. Thanks, Ian <cfsetting enablecfoutputonly="Yes"> <cfoutput query="qry_doc" maxrows="1"> <cfheader name="content-disposition" value="inline; filename=#d_filename#"> <cfcontent type="#d_type#" file="#docfileroot##dg_dir##d_filename#"> <cffile action="readbinary" file = "#docfileroot##dg_dir##d_filename#" variable = "filecontent"> #tostring(tobinary(tobase64(filecontent)))# </cfoutput> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Special thanks to the CF Community Suite Silver Sponsor - RUWebby http://www.ruwebby.com Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185756 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

