Closed rgl1234 closed 7 years ago
Did an error occur in this step?
sudo -u www-data php occ files:scan --all
I had to correct the file-ownership on mimetypemapping.json to www-data to make this work.
sudo chown www-data:www-data mimetypemapping.json
I'm having the same issue, file scan completed with no errors and ownership corrected for mimetypemapping.json - still my browser just downloads the .pad file every time rather than launching OwnPad.
Could you please copy you mimetypemapping.json
so I can check its syntax please?
Olivier;
Here is my mimetypemapping.json
{ "_comment" : "Array mapping file extensions to mimetypes (in alphabetical order]", "_comment2": "The first index in the mime type array is the assumed correct mimetype", "_comment3": "and the second (if present] is a secure alternative",
"_comment4": "Any changes you make here will be overwritten on an update of Nextcloud",
"_comment5": "Put any custom mappings in a new file mimetypemapping.json in the config/ folder of Nextcloud",
"pad": ["application/x-ownpad"],
"calc": ["application/x-ownpad"]
}
Thanks for the feedback. Was that file put in the config/
folder of your Nextcloud/ownCloud, next to the config.php
file?
You also should have lines before the “calc
” one (or after, as you wish, but in this case you need to add a coma after the ”calc
” line). You just need to add the two “pad
”/”calc
” lines just after the “comments
” lines and keep the rest of the file intact.
Olivier;
Thanks for your comment. My file was placed at: /var/www/nextcloud/resources/config
So I moved it to: /var/www/nextcloud/config
Now it works.....thank you. So I did not exactly understand where to copy the file by reading the documentation....now its clear. Thanks.
Perfect. I’ve just updated the README.md
to be more explicit on where to put the file.
Thanks...now the manual is more clear.
Another question: Is it possible to access pads from owncloud with the "apikey" of etherpad?
Not sure of what you’re talking about, but there’s a branch which allows usage of Etherpad API: https://github.com/otetard/ownpad/tree/feature/etherpad-api. By using the API you can create “private pads” which are only available to NC/OC users (if they have the right to access the file).
Yes I am thinking about private pads. So this feature seems to be still in development? Right?
The ability to create private pads is available and usable on that branch (which is not in sync with master
), but it’s not feature complete (see TODO.md
). I need to find some time to finish that work.
ok..thanks......
Hi I installed the ownpad app on Nextcloud 11 and followed your explanations concerning mimetypemapping.json but when I click on a file.pad document inside nextcloud, the file is always beeing downloaded. The pad does not open inside nextcloud. What could be wrong? regards René