Closed hajika closed 6 years ago
Have you seen the remark about Mimetypes in the readme? I think this should fix exactly this (for files created after you edit the mimetypes.json acording to the instructions in the README).
Hi there, I have copied the mimetype file added the 2 lines and rerun the occ file:scan but I still get a download offered, so in some cases this does not seen to be fixing the issue. Happy to help debug more in case it is needed.
Did you do this before creating a the file? If not try creating a new pad and opening that one.
Yes, I restarted PHP and created a new pad afterwards and I still get a "pad file" offered for download.
same issue.
nextcloud docker (wonderfall/nextcloud)
etherpad docker (tvelocity/etherpad-lite)
mimetypemapping.json
file in/config
. I just copy one from (mimetypemapping.dist.json)It seems to me that you missed something in your configuration.
Here is a first list of checks you can do:
config/mimetypemapping.json
exists (if not, copy it from /resources/config/mimetypemapping.dist.json
and don’t forget to remove the .dist
in its name)?config/mimetypemapping.json
contains the two entries for “pad
” and “calc
” (you can refer to the README.md
file for more information)?occ
to rescan all files (sudo -u www-data php occ files:scan --all
)?data-mime
attribute associated to a newly created pad (you can see here where the to find this value)Olivier;
@otetard
I've checked all the steps you listed. It didn't work.
And I got a wrong value data-mime="application/octet-stream"
.
PS: a mysql table oc_mimetypes
is in nextcloud database, maybe i can insert some value to solve this question? Do you have some clue?
UPDATE:
Ahh, I solve it! My fault is i put the mimetypemapping.json
in wrong folder.
The docker image has two config folders, one is /config
, the other is /nextcloud/config
. The latter is the right one.
What I have done yet: Installed the ownPad app. Then in admin/additional settings added the link to the etherpad and saved it.
But when I use the + to create a new pad, it will create a file. When I click that file, firefoc asks me to download it. Nothing happens like opening the pad or something like that.
Nextcloud 12, firefox on Xubuntu 16.04