Struts upload file type filtering did not get

xiaoxiao2021-03-06  39

Want to use the accept attribute in to resolve the filtering of the upload file type, accept = "image / gif" accept = "images / gif"

Accept = "Images / *. GIF" accept = "*. gif" These forms cannot filter files, I don't know how this accept property is used, and I have found an example for half a day.

The result did not get it, and finally had to judge in the action, judge the type of a bunch, watching it is not pleasing!

转载请注明原文地址:https://www.9cbs.com/read-77031.html

New Post(0)