1 Reply Latest reply: Nov 13, 2007 4:36 PM by 807603 RSS

    Restricting File Types in the  "Choose File" window

    807603
      hi,
      I am using struts *<html:file>* to upload a file.
      When i click on browse button, one dialog box ie choose file window opens.

      But initially, it shows All Files (*.*) in File types text box. But i want to restrict the user there only to select some specific types.

      I use accept attribute of <html:file> tag and provide value like "*application/pdf,image/jpeg*".

      But it is showing All Files in that choose file window.

      can anybody help me on this?