×

Loading...
Ad by
  • 推荐 OXIO 加拿大高速网络,最低月费仅$40. 使用推荐码 RCR37MB 可获得一个月的免费服务
Ad by
  • 推荐 OXIO 加拿大高速网络,最低月费仅$40. 使用推荐码 RCR37MB 可获得一个月的免费服务

这不是一个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.
    • 谢谢你们