开发者

Set default value for a input file form [duplicate]

开发者 https://www.devze.com 2022-12-27 02:57 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicate: Dynamically set value of a file input
This question already has answers here: Closed 11 years ago.

Possible Duplicate:

Dynamically set value of a file input

I have an input file HTML form and I want to set the initial value for the file path in an HTML form . I try to change tag "value" 开发者_如何转开发but it doesn't work anyway. <input type="file" name="testcase" value= "C:\test.txt">

Please give me some advice for this small problem. Thanks.


From HTMLHelp.com :

The file input type creates a field through which users can upload files from their local computer or network. The VALUE attribute specifies the name of the initial file, but it is typically ignored by browsers as a security precaution.

Therefore, setting an initial value is not supported.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号