hi all,
here is the code I am using to send the selected file to the user:
<cfheader name="Content-Disposition" value="inline; filename=#form.fileID#">
<cfcontent type="application/unknown" file="#ExpandPath('userData\#request.sqClientInfo.Users_ID#\#form.fileID#')#" deletefile="No">
problem I have is this: by the definition, if MIME type of the cfcontent tag is set to application/unknown, the Web browser is guaranteed to attempt to save the file to the disk (that is exactly what I want) rather then open the application the Web browser believes is appropriate; however, when executed if pdf file is sent, the browser will open it in the Adobe reader; same for gif or jpg files, those are open in a default image editor;
does someone know how to send a file using the cfcontent tag and force the browser to open the Save dialog box instead of open the file? Sylvano
dsylvano@hotmail.com
here is the code I am using to send the selected file to the user:
<cfheader name="Content-Disposition" value="inline; filename=#form.fileID#">
<cfcontent type="application/unknown" file="#ExpandPath('userData\#request.sqClientInfo.Users_ID#\#form.fileID#')#" deletefile="No">
problem I have is this: by the definition, if MIME type of the cfcontent tag is set to application/unknown, the Web browser is guaranteed to attempt to save the file to the disk (that is exactly what I want) rather then open the application the Web browser believes is appropriate; however, when executed if pdf file is sent, the browser will open it in the Adobe reader; same for gif or jpg files, those are open in a default image editor;
does someone know how to send a file using the cfcontent tag and force the browser to open the Save dialog box instead of open the file? Sylvano
dsylvano@hotmail.com