I am developing an email apps in CF. However, viewing email attachments from msg is proving such a pain. here's is my code;
..... and this is the getfile.cfm page code that "should" get the file:
The frustrating thing is that when i work locally on my localhost it works fine .... but when I load up the files on the main server it doesn't work.
please help ....
Code:
<FONT FACE="Helvetica" SIZE="-1"><B>Attached:</B>
<CFLOOP FROM="1" TO="#ListLen(Message.Attachments,' ')#" INDEX="CurrItem">
<CFSET FileName = "#AttachDir##URLEncodedFormat(GetFileFromPath(ListGetAt(Message.AttachmentFiles, CurrItem, ' ')))#">
<CFOUTPUT>
<CFSET FileName = Replace(FileName, "%2E", ".", "ALL")>
<cfset FileName = Replace(FileName,"%20"," ","ALL")>
<cfset FileName = Replace(FileName,"%5F","_","ALL")>
<br><A HREF="getfile.cfm/#GetFileFromPath(Filename)#?Filename=#URLEncodedFormat(Filename)#">#ListGetAt(Message.Attachments, CurrItem, " ")#</A>
<br>
</CFOUTPUT>
</CFLOOP>
..... and this is the getfile.cfm page code that "should" get the file:
Code:
<cfcontent type="application/unknown" FILE="#URL.Filename#" deletefile="No">
The frustrating thing is that when i work locally on my localhost it works fine .... but when I load up the files on the main server it doesn't work.
please help ....