Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Posts: 185
Registered: ‎08-17-2008
My Device: Red BlackBerry Z10
My Carrier: Vodafone

Input type=file and accept attribute

Try to do a simple file selector with a filter via accept attribute and in BlackBerry PlayBook appears all files, 



I am trying with:


<input accept="image/*,application/pdf" type="file">

 it is possible to do a filter on Input type="file"?


Thanks in advance.

Josep Maria
Posts: 1,561
Registered: ‎04-12-2010
My Device: BlackBerry Z10
My Carrier: Bell

Re: Input type=file and accept attribute

Hello Josep,


I'm seeing the same behaviour as you describe in that the accept attribute is not being used by the file picker. This may end up being a good feature request candidate.

Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.