Open tbsbdr opened 1 month ago
Do I understand correctly that we create an empty DOCX file to a location writeable by the user and fill a new TemplateSource
property in the GetFileInfo response with a URL to the DOTX template? onlyoffice would detect that new parameter, fetch the template and fill the DOCX file accordingly?
If so, I see no problems with this approach. We would have to store the template in the wopi session and add some code to handle the opening and creation logic. All good.
Do I understand correctly that we create an empty DOCX file to a location writeable by the user and fill a new
TemplateSource
property in the GetFileInfo response with a URL to the DOTX template? onlyoffice would detect that new parameter, fetch the template and fill the DOCX file accordingly?
Yes, you can either create a new empty file or copy the template file itself, which is an alternative method used by other vendors. A new file will be created from the TemplateSource file.
cc @micbar
After discussion with oC colleagues, we have a vague idea how to implement that.
We should use the app provider /app/new Action to create the new file in the personal space of the user with a server choosen name (File name and user-friendly datetime). Then we can open that via /app/open with the selected template in the wopi CheckFileInfo response.
This issue is unique.
Your idea.
Userstory
Flow
( pasting here @ibnpetr 's proposal: )
Note: