[jboss-user] [JBoss Seam] - accept="image/png, image/jpg" has no effect on <s:fileUploa

gemel do-not-reply at jboss.com
Tue Jan 15 11:32:36 EST 2008


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!


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4120155#4120155

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4120155



More information about the jboss-user mailing list