I think you just want to be using the CFFILE tag, and then I
think the filename is available to you in a variable.
Ryan
At 21:47 2/8/01 +1100, you wrote:
>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.