Situation
could not upload odt file to OpenEMR to be used a a template
when trying to use the odt sample file as is, downloaded from File:Woc.zip - OpenEMR Project Wiki
system says “filetype is not accepted”
This is on the demo site
OpenEMR Version
I’m using OpenEMR version 7.02
Browser:
I’m using:
Operating System
I’m using: Google Chrome
Search
Did you search the forum for similar questions?
searched using key words “document template” didn’t see issue or solution
Logs
Did you check the logs?
Was there anything pertinent in them?
Please paste them here (surround with three backticks (```) for readability.
You can also turn on User Debugging under Administration->Globals->Logging User Debugging Options=>All
I tried again today from demo sites and realized that you have to either not leaving a destination file name, or have to name the destination file name with .odt to make it work.
It’s only the portal document templates that doesn’t support odt, doc and docx.
The document templates in demographic documents does however.
This is because the file is only opened raw and substitutions are made then save in same format opened.
This used to work well but it’s been awhile since I’ve used and there could be some errors due to new PHP versions.
So I recommend that the error logs are checked and reported.
The function actually worked for odt files but you have to either leave the destination file name field empty, or give the template a new name with .odt as suffix.