On 9/10/13 5:08 PM, Rajath Shashidhara wrote: > Hello, > > When I create a new Document and save it from dialog on a cmis repository, > I need the media type of the file. > > In the back end what happens is, when a new document is created in > OpenOffice, it is stored in a temp file on the harddisk. > So, when I save it from the save dialog on a cmis repository through my > ucp, I receive a "transfer" ucb call. So, When I have to create a new file > of CMIS server, I need the mime type of the file. So, the the > "getPropertyValues" to file ucp with the property as "MediaType" returns me > null. > > So, any idea how I have to go about this? > Because, the file can be saved in different formats from saveas dialog, I > assusme the stream encoding for different formats will be different. So, > this would cause errors later, if I don't supply the correct mimetype. >
I believe the property should be provided with the transfer call or in this context. Have you debug all calls to the UCB in the context of the save command, it's more than one call ... Juergen --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org For additional commands, e-mail: dev-h...@openoffice.apache.org