Try these variables.

#file.ServerDirectory# Directory of the file actually saved on the server.

#file.ServerFile#  Filename of the file actually saved on the server.

#file.ServerFileExt#  Extension of the uploaded file on the server, without
a period, for example, txt not .txt.

#file.ServerFileName#  Filename, without an extension, of the uploaded file
on the server.

You might try <Cfset myvariable = "#file.serverDirectory##file.serverfile#">
if you are looking for the full path.

If you just want the filename, use #file.serverfilename#

You may have to play with this a little, as I didnt test it to make sure
everything was correct.

John
-----Original Message-----
From: Shally [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 31, 2001 8:59 AM
To: CF-Talk
Subject: Please help!!


Hello Every one,
I am using Cffile in my action page to upload a file
in a particular location.
This is working fine.
But then I have to insert the file name which is being
uploaded in my table too.
I used Cfinsert aswell as SQL insert statement to
insert the file name in the database biut neither
worked.
Please Help!!
Shally
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to