Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HtmlInputFile

Status
Not open for further replies.

sroberts82

Programmer
Oct 11, 2005
36
US
Does anyone know when using htmlInputFiles how the textbox part (for want of a better word!) can be set to a certain value, a default say
 
You can't set a default path as that would be a security risk. The only way to upload a particular file is if the user selects it.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Ok, well what Im actually trying to do is get the user to submit a bunch of files, validate them, and if say 1 out of 5 is wrong i want to go back to the form and have the 4 correct ones still say whatever they did before so user will only have to change the wrong one. Can this be done?
 
Not in the way that you want. What you could do is upload the 4 that are correct and simply have a label with the original file name and some information to say that it was correct e.g.
Code:
C:\File1.txt - Uploaded Successfully
C:\File2.txt - Uploaded Successfully
C:\File3.txt - Uploaded Successfully
C:\File4.txt - Incorrect File - Please Select Another (then provide a HTMLInputFile control here)
C:\File5.txt - Uploaded Successfully


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top