Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Input field default value on type=file ? Is this possible?


Recommended Posts



I'm trying to pass either a variable or a fixed default value to a type="FILE" input box.


This is the kind that produces an input field, then adds a 'browse' button on the end by itself.



<input name="userfile" type="file" size="50" value="x:\adirectory\somefile.txt">


This works just fine, as long as type is "text"


but this doesn't fill in the default when the type is "file"


Is there a way to make this work? I wanted to keep the nice little browse button at the end.




Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...