You would also want to add the database record and then find your last
inserted recordID and update that record with the unique name uploaded in
the code below. You then use #SERVERFILE# for the name.
On 2/28/07, Peter Tilbrook wrote:
> destination="#expandpath("images/content")#" nameconflic
Actually, for security, I would avoid using a hard-coded directory and do
something like:
It helps keep the directory structure of you server more secure from potential
hackers.
eg:
Gotta love the CFDUMP tag. Can come in very handy for all sorts of things...
Forms, queries, arrays, xml... I hear they are beefing it up for Scorpio.
>After your cffile, do the follwoing to see what's available to use:
>
>
>
>Adrian
~
The file name is available to you if you want it. So no need to do any
trimming.
Adrian
-Original Message-
From: Pete [mailto:[EMAIL PROTECTED]
Sent: 28 February 2007 10:36
To: CF-Talk
Subject: RE: Saving the name of an attached file to the DB
OK I know what I am getting - I am getting
ruary 2007 9:17 PM
To: CF-Talk
Subject: RE: Saving the name of an attached file to the DB
After your cffile, do the follwoing to see what's available to use:
Adrian
-Original Message-
From: Pete [mailto:[EMAIL PROTECTED]
Sent: 28 February 2007 10:02
To: CF-Talk
Subje
After your cffile, do the follwoing to see what's available to use:
Adrian
-Original Message-
From: Pete [mailto:[EMAIL PROTECTED]
Sent: 28 February 2007 10:02
To: CF-Talk
Subject: Saving the name of an attached file to the DB
Hi there
I a piece of code in my program :
I wa
Hi there
I a piece of code in my program :
I want to save the name of the file that is uploaded into the database.
Can I just use attachment_1 as the name
?
Thanks in advance.
P
~|
Create robust enterprise, web RIAs.
U
7 matches
Mail list logo