Hi Mark,
I was faced with something similar. It cannot be done. This is by design,
otherwise rogue websites could force you to upload a file (if they knew the
path/filename).


See the following for more info.

        http://www.blooberry.com/indexdot/html/tagpages/i/inputfile.htm

        http://www.htmlcodetutorial.com/forms/_INPUT_TYPE_FILE.html

HTH
DavidB

-----Original Message-----
From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 02, 2003 10:37 AM
To: CF-Talk
Subject: Pre-populating a "file" form field


I have an application that starts with a form.  When a user fills out the
form and clicks submit, the data is sent to the server and validated.  If
the user has submitted something in error (a date, or a missing required
field), the form is re-displayed and populated with the users original
choices - along with a message telling them what to correct.  It's the sort
of code I'm sure we have all written in our sleep.

One of the fields is a "file" field however.  When I try to "pre-populate"
that field with the original user choice, it fails.  I'm sure this is
because of the special nature of the file field, and I've told my client
that I do not believe it can be done.  Does anyone know of a trick to
re-fill the file field with the users original choice?

-Mark



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Reply via email to