Actually more like



SELECT fileID,fileName,filepath
FROM    fileArchives
WHERE fileID = #newFileID#

cfcontent type="text/plain"
file="#filePath#" deletefile="No"




----- Original Message -----
From: "Douglas L. Brown" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Saturday, November 10, 2001 12:04 PM
Subject: Re: Am I a crackhead?


> I am assuming that when you write the file, you are storing the path to
the
> new file in your DB. If you are and each file has a file ID then I would
say
> that you run a query and get the file path from your DB
>
> SELECT fileID
> FROM    fileArchives
> WHERE fileID = #fileID#
>
> cfcontent type="text/plain"
> file="#fileID#" deletefile="No"
>
>
>
> ----- Original Message -----
> From: "Eric J Hoffman" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Saturday, November 10, 2001 11:43 AM
> Subject: RE: Am I a crackhead?
>
>
> > One more goofy thing.  Maybe I need more beer.
> >
> > The file is written just like it should.  I am using cfcontent to fire
off
> > the download of this txt file....it starts the download, but it names
the
> > file on download the name of the calling page (goldmine_action.cfm), not
> the
> > actual filename of the file.  When I open it on my desktop, it is
actually
> > the text file meant to be downloaded.  Did I do something wrong?
> >
> > cfcontent type="text/plain"
> > file="filepath\clientapps\marcon\archives\#form.newname#"
deletefile="No"
> >
> > I suppose its because of the dynamic file name there...this happens
after
> > archiving a file and renaming the archived file to what the user
> > demands...after the rename, this cfcontent fires...
> >
> > Eric J Hoffman
> > Home of Vikings fans Worldwide!
> > http://www.purplepride.org
> >
> >
> >
> > -----Original Message-----
> > From: Eric J Hoffman [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, November 10, 2001 1:29 PM
> > To: CF-Talk
> > Subject: RE: Am I a crackhead?
> >
> >
> > Why yes I was a crackhead.   In the file read (which occurs right after
a
> > cffile upload), I used form.formfieldname and it went crazy.  When I
used
> > file.clientfile in the file read, it worked just like I wanted it to,
oh,
> > about 90 minutes ago.  *sigh*  :-)
> >
> > Thanks for the responses all.
> >
> > Eric J Hoffman
> > Home of Vikings fans Worldwide!
> > http://www.purplepride.org
> >
> >
> >
> > -----Original Message-----
> > From: Bud [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, November 10, 2001 1:17 PM
> > To: CF-Talk
> > Subject: Re: Am I a crackhead?
> >
> >
> > On 11/10/01, Eric J Hoffman penned:
> > >I am attempting to read a text file and assign it to a variable as
> > required,
> > >and then cffile append it to another with the variable contents.  Is
> there
> > >another way I should be doing this or what gives?  The text file itself
> is
> > >fairly small.
> >
> > It sounds like maybe you are trying to name the file with the
> > contents or something. Otherwise, you're naming it too long. Can we
> > see some code?
> > --
> >
> > Bud Schneehagen - Tropical Web Creations
> >
> > _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
> > ColdFusion Solutions / eCommerce Development
> > [EMAIL PROTECTED]
> > http://www.twcreations.com/
> >
> >
> >
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to