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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting the default value for <input type=file>

Status
Not open for further replies.

mrnoisy

Programmer
Mar 1, 2003
78
AU
Is there any way to set or change the default value of a form file input field, ie <input type=file>, other than selecting a file using the browse option or manually typing it in?

I have tried setting it using both value="C:\path\file.txt" and have also tried javascript to change the value but neither of these methods worked.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top