After the upload has occurred a number of cffile variables exist including:

cffile.ClientDirectory
Directory location of the file uploaded from the client's system.

cffile.ClientFile
Name of the file uploaded from the client's system.

cffile.ClientFileExt
Extension of the uploaded file on the client's system without a period, for
example, txt not .txt.

cffile.ClientFileName
Filename without an extension of the uploaded file on the client's system.

cffile.FileSize  Size of the uploaded file.

cffile.FileWasSaved  Indicates (Yes or No) whether or not Cold Fusion saved
a file.

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

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

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

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

cffile.TimeCreated  Time the uploaded file was created.

cffile.TimeLastModified  Date and time of the last modification to the
uploaded file.

HTH,
Duane Boudreau, CTO
CFExperts, LLC
Nashua, NH
603.620.8797

> -----Original Message-----
> From: Paul Black [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 08, 2001 5:48 AM
> To: CF-Linux
> Subject: Upload of Files with CF
>
>
> I'm writing a CF Application which I want a user to be able to use a
> file browser dialog box to specify an image file to be uploaded to my CF
> server. I also want to save the name of the file into a database.
>
> I'm using <input type="FILE" name="image_file_name"> to bring up a file
> browser dialog box for the user to select the image file for upload.
> This returns the fully qualified file name which I can use as the source
> file for the CFFILE tag.
>
> The image_file_name is returned containing something like
> C:\windows\dir2\myfile.jpg or /usr/local/graphics/myfile.jpg
>
> I need to know what is the best CF function to use to strip off the
> filename (eg, myfile.jpg) from the fully qualified directory and
> filename?
>
> Also any thoughts on how to handle Unix style filenames where the
> directory / is a forward slash rather than the backwards DOS \?
>
> I would like my web application to be able to be used by people with
> browsers on both Unix and Windows based systems.
>
> Best Regards.  Paul
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-linux%40houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_linux or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to