CollaboraOnline / collabora-online-sdk-examples

Various minor pieces of code to be used in Collabora Online and related software
Apache License 2.0
29 stars 24 forks source link

How can I change CheckFileInfo in python app? #28

Open ikoofi opened 2 months ago

ikoofi commented 2 months ago

Hellow, I am integrating "collabora online" into my python application. How can i chang res = {'UserCanWrite': True} in CheckFileInfo? I tried: <input name="checkfileinfo_override" value="UserCanWrite=False" type="hidden"/> but not working, please help me!

hfiguiere commented 1 month ago

You cannot use this method to override UserCanWrite. Only DownloadAsPostMessage can be overidden. https://sdk.collaboraonline.com/docs/advanced_integration.html#override-checkfileinfo

UserCanWrite can only be set in the CheckFileInfo WOPI operation implemented in the python application.