Hi, 

I am working on some forms that will be used for inseting/editng data in
my database. On one of the forms I need to upload a file and provide the
INSERT statement with a filename for my database. I have it working
using 2 fields; 1 for the file I wish to upload and 1 for the file name
I wish to insert into my database. I currently have to copy and paste
the file name from the file path to the file name field.

I was wondering how I might be able to do this more efficiently. Is
there a way the get the file name from the input type="file" so I can
use it in my SQL statement? I know that once the form is submitted a
<cfoutput>#form.file#</cfoutput> would yield something like
C:\WINNT\TEMP\ACF12D.tmp. If it's not possible, am I going about it in
the same manner as most folks?
 

Best Regards,

Michael Wilson
961 Media, Inc.
===========================

Phone:    704.736.9009
Fax:      704.736.9902
Mobile:   704.281.7616

http://www.961media.com
mailto:[EMAIL PROTECTED]

===========================
Media. it's what we do.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to