×

Loading...
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。

这不是一个struts的问题,是HTML的问题。见内,but--Current browsers generally ignore the ACCEPT attribute.

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. The ACCEPT attribute gives a comma-separated list of media types accepted, allowing the browser to filter out inappropriate files. Current browsers generally ignore the ACCEPT attribute.
Report

Replies, comments and Discussions:

  • 工作学习 / 专业技术讨论 / 是否有人知道用struts html:file 如何指定 browse 的文件类型为csv ?目前为 ALL FILE , 谢谢
    • 有侠客知道吗?thanks
      • accept=?
    • 这不是一个struts的问题,是HTML的问题。见内,but--Current browsers generally ignore the ACCEPT attribute.
      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. The ACCEPT attribute gives a comma-separated list of media types accepted, allowing the browser to filter out inappropriate files. Current browsers generally ignore the ACCEPT attribute.
    • 谢谢你们