1 Reply Latest reply on Jan 15, 2008 8:12 PM by Shane Bryzak

    accept="image/png, image/jpg" has no effect on <s:fileUploa

    Melanie Ntolo Newbie

      Im using seam 2.0.0
      I have a <s:fileUpload> and my application should accept only "image/png, image/jpg" files.
      I used the <s:fileUpload> like this

      <s:fileUpload accept="image/png, image/jpg" data="#{TPZBackgroundUploadAction.byteArray}" fileName="#{TPZBackgroundUploadAction.fileName}"/>

      But when the component is diplayed, I can see all files not only "image/png, image/jpg".

      What am I doing wrong?
      Thanks for help!