This is a multi-part message in MIME format.
------=_NextPart_000_0194_01C031F2.15EE9DA0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
catching 3 filenames when using cffile
You have to save off the file name into a variable after each CFFILE
operation if you want to know the name of each of the 3 files, otherwise you
will only have the last file saved by CFFILE present in the FILE.ClientFile
variable.
DC
-----Original Message-----
From: Nagesh Kumar Deva [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 09, 2000 10:19
To: CF-Talk
Subject: catching 3 filenames when using cffile
hi all,
can anybody help me out. I've got 3 input type="file" tags on my form. so
user can upload 3 files at a time.
i manage to store the files in the particular directory and the related
filenames in the database.If one input type="file" is there then no
problem
ie just use the File.Clientfile to catch the filename given the user but
i've got three file inputs on my form. i'm getting the same filename when
i
outputted the 3 filenames selected by the user rather they three are
different.
I tried with using arrayappend in the action form. i mean after one cffile
tag one arrayappend the same way i wrote three arrayappends. But doet it
works???? i mean my approach is correct? to trap the 3 filenames given by
the user?
i read the documentation, in that they clearly mentioned that "If two
cffiles tags execute, the results of the first are overwritten by the
subsequent cffile operation".
how should i do this??
thanx in advance
regards
nagesh
--------------------------------------------------------------------------
----
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------=_NextPart_000_0194_01C031F2.15EE9DA0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>catching 3 filenames when using cffile</TITLE>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3018.900" name=3DGENERATOR></HEAD>
<BODY>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN =
class=3D164070813-09102000>You=20
have to save off the file name into a variable after each CFFILE =
operation if=20
you want to know the name of each of the 3 files, otherwise you will =
only have=20
the last file saved by CFFILE present in the FILE.ClientFile=20
variable.</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D164070813-09102000></SPAN></FONT> </DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D164070813-09102000>DC</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D164070813-09102000></SPAN></FONT> </DIV>
<BLOCKQUOTE style=3D"MARGIN-RIGHT: 0px">
<DIV align=3Dleft class=3DOutlookMessageHeader dir=3Dltr><FONT =
face=3DTahoma=20
size=3D2>-----Original Message-----<BR><B>From:</B> Nagesh Kumar Deva=20
[mailto:[EMAIL PROTECTED]]<BR><B>Sent:</B> Monday, October 09, =
2000=20
10:19<BR><B>To:</B> CF-Talk<BR><B>Subject:</B> catching 3 filenames =
when using=20
cffile<BR><BR></DIV></FONT>
<P><FONT size=3D2>hi all,</FONT> </P>
<P><FONT size=3D2>can anybody help me out. I've got 3 input =
type=3D"file" tags on=20
my form. so</FONT> <BR><FONT size=3D2>user can upload 3 files at a =
time.</FONT>=20
<BR><FONT size=3D2>i manage to store the files in the particular =
directory and=20
the related</FONT> <BR><FONT size=3D2>filenames in the database.If one =
input=20
type=3D"file" is there then no problem</FONT> <BR><FONT size=3D2>ie =
just use the=20
File.Clientfile to catch the filename given the user but</FONT> =
<BR><FONT=20
size=3D2>i've got three file inputs on my form. i'm getting the same =
filename=20
when i</FONT> <BR><FONT size=3D2>outputted the 3 filenames selected by =
the user=20
rather they three are</FONT> <BR><FONT size=3D2>different.</FONT> </P>
<P><FONT size=3D2>I tried with using arrayappend in the action form. i =
mean=20
after one cffile</FONT> <BR><FONT size=3D2>tag one arrayappend the =
same way i=20
wrote three arrayappends. But doet it</FONT> <BR><FONT =
size=3D2>works???? i mean=20
my approach is correct? to trap the 3 filenames given by</FONT> =
<BR><FONT=20
size=3D2>the user?</FONT> </P>
<P><FONT size=3D2>i read the documentation, in that they clearly =
mentioned that=20
"If two</FONT> <BR><FONT size=3D2>cffiles tags execute, the results of =
the first=20
are overwritten by the</FONT> <BR><FONT size=3D2>subsequent cffile =
operation".=20
</FONT></P>
<P><FONT size=3D2>how should i do this??</FONT> </P>
<P><FONT size=3D2>thanx in advance</FONT> </P>
<P><FONT size=3D2>regards</FONT> <BR><FONT size=3D2>nagesh</FONT> =
</P><BR>
<P><FONT=20
=
size=3D2>----------------------------------------------------------------=
--------------</FONT>=20
<BR><FONT size=3D2>Archives: <A=20
href=3D"http://www.mail-archive.com/cf-talk@houseoffusion.com/"=20
=
target=3D_blank>http://www.mail-archive.com/cf-talk@houseoffusion.com/</A=
></FONT>=20
<BR><FONT size=3D2>To Unsubscribe visit <A=20
=
href=3D"http://www.houseoffusion.com/index.cfm?sidebar=3Dlists&body=3D=
lists/cf_talk"=20
=
target=3D_blank>http://www.houseoffusion.com/index.cfm?sidebar=3Dlists&am=
p;body=3Dlists/cf_talk</A>=20
or send a message to [EMAIL PROTECTED] with =
'unsubscribe' in=20
the body.</FONT></P></BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_0194_01C031F2.15EE9DA0--
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.