Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

UploadItem and getAccept() method.

$
0
0
Hi,

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");

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.

Attached Images
File Type: jpg Sans titre.jpg (38.5 KB)

Viewing all articles
Browse latest Browse all 4756

Trending Articles