what about just using a textfield with the value basically to mimic a file field. so when submitted, if they want to change it, use dhtml to change/show a file field. not the prettiest thing, but could work i guess.
-----Original Message----- From: Massimo, Tiziana e Federica [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 02, 2003 11:12 AM To: CF-Talk Subject: Re: Pre-populating a "file" form field > I've never had a client complain about this, ergo I've never thought about > it before ;-) But yeah, I've noticed it in passing, and thinking about it > now, the only thing that comes to mind is: > > - onsubmit, copy the file field's value into a hidden field with JS > - Use this hidden field to re-populate the file field > > Haven't tried it, but can't see why it wouldn't work. It doesn't works because, for security reasons, the value of a file field can't be set, neither from HTML or JavaScript Massimo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.