文件提交问题(十万火急)
<input type=file value="d:\a.gif">
提示文件无效,一定要点击浏览按钮选择一幅按钮才行,
有没有办法不点按钮直接用代码来完成
问题点数:20、回复次数:9Top
1 楼sally0156(香草水仙)回复于 2001-12-14 13:57:00 得分 2
<input type=text value="d:\a.gif">
<input type=hidden value="d:\a.gif">Top
2 楼karma(无为MS MVP)回复于 2001-12-14 15:19:01 得分 3
you cannot preset the value for <input type="file" ..."> or set the value using javascript.
If you could, you could use a hidden form with a preset <input type="file"..> and upload files automatically, don't you think that is a security hole?Top
3 楼nbwzw(wzw)回复于 2001-12-27 13:24:57 得分 0
UP!Top
4 楼vincentmax(天地任逍遥)回复于 2001-12-27 15:00:38 得分 2
就是嘛,那样安全性岂不是没有保证了Top
5 楼Jrius()回复于 2001-12-27 15:16:01 得分 3
file 的value值是只读的,不能设置。
Top
6 楼runmin()回复于 2001-12-27 17:31:28 得分 2
是你文件的url不对吧把value改成
file:///d/a.gifTop
7 楼linshao16(linshao)回复于 2002-02-08 20:57:01 得分 2
有没有控件可以完成Top
8 楼QQRN(笨QQ-馊主意提供者)回复于 2002-02-20 18:00:08 得分 3
不能设置默认值的!!!Top
9 楼beyond_xiruo(CorruptionException)回复于 2002-02-20 22:13:07 得分 3
无论你用什么方法都无法设置<input type=file>的value,它是只读的!
你能否换一种方式去实现你的目的!Top




