Duane, the complete code in getfile.cfm should be:
<cfheader name="Content-Disposition"
value="inline; Filename=#url.filename#">
<cfcontent type="qqqq"
file="#GetDirectoryFromPath(GetCurrentTemplatePath())##url.filename#"
deletefile="No">
This trick only works in the browser when trying to save the file to disk.
If the user opens the file directly in a host application (say, for a Word
document), the new file name won't be respected within Word when called from
within Internet Explorer. I've also experimented with dropping out the
"inline;" part of the Value attribute and seen no change in behavior.
David
> -----Original Message-----
> From: Duane Boudreau [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, October 28, 2000 2:51 PM
> To: CF-Talk
> Subject: RE: cfcontent
>
>
> I tried that but it didn't work. I thought there was/is something that can
> be done to the url to fix this.
>
> In file one I have
>
> <a href="getfile.cfm?filename=something.ext">GetFile</a>
>
> in getfile.cfm:
>
> <cfcontent type="qqqq"
> file="#GetDirectoryFromPath(GetCurrentTemplatePath())##url.filename#"
> deletefile="No">
>
> Duane
>
>
> > -----Original Message-----
> > From: David Gassner [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, October 28, 2000 3:44 PM
> > To: CF-Talk
> > Subject: RE: cfcontent
> >
> >
> > It's:
> >
> > <CFHEADER NAME="Content-Disposition" VALUE="inline;
> > Filename=#myfilename#">
> >
> > > -----Original Message-----
> > > From: Duane Boudreau [mailto:[EMAIL PROTECTED]]
> > > Sent: Saturday, October 28, 2000 12:29 PM
> > > To: CF-Talk
> > > Subject: cfcontent
> > >
> > >
> > > I'm using cfcontent to trigger the upload of a file. Does
> > anyone remember
> > > the trick to faking cfcontent into using a file name other the
> > name of the
> > > template it is located in?
> > >
> > > TIA,
> > > Duane
> > >
> > > ------------------------------------------------------------------
> > > ------------------------------
> > > Archives: http://www.mail-archive.com/[email protected]/
> > > Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
> > > or send a message with 'unsubscribe' in the body to
> > > [EMAIL PROTECTED]
> > >
> >
> > ------------------------------------------------------------------
> > ------------------------------
> > Archives: http://www.mail-archive.com/[email protected]/
> > Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
> > or send a message with 'unsubscribe' in the body to
> > [EMAIL PROTECTED]
>
> ------------------------------------------------------------------
> ------------------------------
> Archives: http://www.mail-archive.com/[email protected]/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
> or send a message with 'unsubscribe' in the body to
> [EMAIL PROTECTED]
>
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message
with 'unsubscribe' in the body to [EMAIL PROTECTED]