Display the filterd types in the dailog window of upload control.

Sep 8, 2008 at 5:29 AM
I put upload control of sharppieces in my application.But i have to filter the types of the upload files.I filter ir dynamically but when i click on select files open a filedialog,i want to display the filterd types in the dialog window.in the documentation of upload control we people specify that,we can filter the types in the dialog window.But when i filter it the types willnot display.

Please help me to display the filtered types in the diaolog window of upload control
Coordinator
Sep 9, 2008 at 6:22 PM
Edited Sep 9, 2008 at 6:31 PM
Hi,

The file type filter can be set with the Types property. Here is an example for Jpeg files only:

Types="{'Jpeg Image': '*.jpg'}"

Here's another example for images, mp3 and 'All Files':

Types="{'Images': '*.jpg; *.gif; *.bmp', 'MP3 Files': '*.mp3' ,'All files (*.*)': '*.*'}"

The pattern is "{'FilterText 1': '*.Extension 1', 'FilterText 2': '*.Extension 2', ... , 'FilterText N': '*.Extension N'}"

Regards