You know since your using a hidden field, you could use a javascript validation on the file so it checks the filetype before you even send it.
Like the cfinputs do, except an alert box that says "Wrong file type" or something. ______________________ steve oliver atnet solutions, inc. http://www.atnetsolutions.com -----Original Message----- From: Cantrell, Adam [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 10:40 AM To: CF-Talk Subject: RE: file input value woops, this went right to dave for some reason. I don't really need the path, but I was experimenting with "bandwidth and filesystem conservation methods" if that makes sense, and it would help me out if I could grab the filename they're trying to upload before even wasting the bandwidth or filesystem access. But then this morning I realized I was just being a burnt-out idiot last night, and that I wouldn't be saving any bandwidth at all by doing that - the file still gets uploaded given the protocol, and the filesystem still gets tapped when saving to the tmp file. I've been refreshed with a few hours of sleep, so I'm on the right path now. Thanks for all your help! Adam. > -----Original Message----- > From: Dave Watts [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 15, 2002 9:06 AM > To: '[EMAIL PROTECTED]' > Cc: '[EMAIL PROTECTED]' > Subject: RE: file input value > > > > For instance, if I hit 'browse' on the form page, and > > selected C:\temp\test.txt, is there any variable on the > > action page that contains the string 'C:\temp\test.txt' > > without having to do a cffile. I don't think there > > is, but wanted to ask the list to be sure. I am using > > javascript right now to populate a hidden field and > > passing it that way. > > No, there's no variable that will show the path to the file > on the client's > machine. The filename itself will be available within the > CFFILE scope. Why > would you want to know the path on the client's machine anyway? > > Dave Watts, CTO, Fig Leaf Software > http://www.figleaf.com/ > voice: (202) 797-5496 > fax: (202) 797-5444 > ______________________________________________________________________ Get Your Own Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation � $99/Month � Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb 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

