Hi,
I define and use an UploadItem and call the method setAccept(...) on it :
The result is that I can choose in File Chooser the different options to restrict files extensions :
All Files(*.*)
All SupportedTypes (*.jpg;*.png;*.gif;*.bmp)
image/jpeg(*.jpg)
image/png(*.png)
image/gif(*.gif)
image/bmp(*.bmp)
I attached a capture of the result
My problem is that the item "All Files (*.*)" is selected by default and I would like the item "All SupportedTypes (*.jpg;*.png;*.gif;*.bmp)" selected by default. The user can modify after.
Is that anyway to do this ? Thanks by advance.
I define and use an UploadItem and call the method setAccept(...) on it :
Code:
uploadItem = new UploadItem();
uploadItem.setAccept("image/jpeg,image/png,image/gif,image/bmp");All Files(*.*)
All SupportedTypes (*.jpg;*.png;*.gif;*.bmp)
image/jpeg(*.jpg)
image/png(*.png)
image/gif(*.gif)
image/bmp(*.bmp)
I attached a capture of the result
My problem is that the item "All Files (*.*)" is selected by default and I would like the item "All SupportedTypes (*.jpg;*.png;*.gif;*.bmp)" selected by default. The user can modify after.
Is that anyway to do this ? Thanks by advance.