Most of the browsers do not support accept attribute correctly. I fixed this in my application using some javascripts triggered on change.
From: cellterry <cellte...@gmail.com> To: user@struts.apache.org Date: 14-10-2010 15:48 Subject: struts file tag "accept" attribute Dear all, I find that accept attribute of struts file tag (s:file) seems to be not working. My code is: : : <s:file name="f" key="upload" accept="image/jpeg"/> : : A file dialog is prompted, but there is no filter to image types jpeg. My struts core version is 2.1.8.1. Terry. -- View this message in context: http://old.nabble.com/struts-file-tag-%22accept%22-attribute-tp29961025p29961025.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you