New files don't open in Nextcloud, problem still in new files.
jcjc86 opened this issue · 4 comments
Hello,
in other issues, there are a temporary solution:
Go to Admin settings > Additional settings ( /index.php/settings/admin/additional ) and click the Save button to register MIME types.
But It only works for the files already created, but no for the new files, you need to clic again the save botton if you want to make the files accesible on the browser.
This is going to be fixed?
I am unable to reproduce this. Everything works fine in my case.
Which version of Nextcloud are you using?
Clicking "Save" button creates or updates (if needed) "mimetypemapping.json" file in your config/ directory. If it's there Next Cloud should permanently register MIME type for .drawio file extension for all files (old and new). I don't know what may be happening in your case. Could you please check if the file is there? And what's in it?
I am unable to reproduce this. Everything works fine in my case.
Which version of Nextcloud are you using?
Clicking "Save" button creates or updates (if needed) "mimetypemapping.json" file in your config/ directory. If it's there Next Cloud should permanently register MIME type for .drawio file extension for all files (old and new). I don't know what may be happening in your case. Could you please check if the file is there? And what's in it?
Nextcloud 20.0.8
I have mimetypemapping.json in config directory, with these permissions:
-r--r--r-- 1 root root mimetypemapping.json
and inside the file:
{
"kdbx": ["application/x-kdbx"]
}
So that's the problem.
"-r--r--r--" means that the config file is read-only.
You need to change the file permissions manually (by typing "sudo chmod 666 mimetypemapping.json") or manually edit it to:
{
"kdbx": ["application/x-kdbx"],
"drawio": ["application/x-drawio"]
}
// 666 - is read+write for user/group/other
Editing the file works!
Thank you!