Hi!

I am trying to save a text within a file on the client. For that purpose I show a FileChooser and let the user select the desired filename using the method

ClientContext.storeFile(IFileStoreHandler, FileChooserConfig, ULCComponent)

I implement the callback prepareFile(OutputStream) of the IFileStoreHandler interface to write the desired file content into the OutputStream. As soon the user has selected the filename and approved the FileChooser the callback onSuccess(String) is beeing called. At this point I have no chance to alter the filename. This is especially desired if the user does not specify a file extension. I usually check whether the entered filename ends with the required extension and if not, I append it. Is there any other possibility to solve this problem? I guess I could rename the file afterwards but I am looking for a more elegant way..

Thanks in advance
Marc
_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer

Reply via email to