<input type=text value="d:\a.gif"><input type=hidden value="d:\a.gif">

解决方案 »

  1.   

    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?
      

  2.   

    file 的value值是只读的,不能设置。
      

  3.   

    是你文件的url不对吧把value改成
    file:///d/a.gif
      

  4.   

    无论你用什么方法都无法设置<input type=file>的value,它是只读的!
    你能否换一种方式去实现你的目的!