Hi
I am setting up a ClientContext.loadFile(...) call
The config is like this:
FileChooserConfig config = new FileChooserConfig ();
config.setFileSelectionMode ( FileChooserConfig.FILES_ONLY );
config.setDialogType ( FileChooserConfig.OPEN_DIALOG );
config.addFileFilterConfig ( new
FileChooserConfig.FileFilterConfig ( new
String[]{"bmp","jpg","jpeg","png","gif"}, "*.jpg;*.bmp;*.png;*.gif" )
My problem is now that my Clients are running windows mostly, and that
the Dialog filters out case sensitive variations of "bmp", eg "BMP", or
"Bmp".
From what I see I do not have any other option than writing my own
FileService since AllPermissionsFileService implements the FileFilter
like this:
if (file.getName().endsWith(allowedExtensions[j])) {
return true;
}
For the future it would be really nice if there would be a
case-insensitive filtering option, or if AllPermissionsFileService were
refactored, so I could rewrite the FileFilter in a derived class.
Regards
Alex
_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer