nextcloud / nextcloud/recommendations
Registered MIME types are ignored
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 15
- Forks
- 19
- Avg merge
- 6d 15h
- Merged PRs (30d)
- 9
Description
Some apps register their own MIME types or act as a handler to open certain file types. For example Draw.io can be configured to open XML files or you can add ".drawio" as custom MIME type in /config/mimetypemapping.json (also see https://github.com/pawelrojek/nextcloud-drawio).
Within the file manager this works fine - when clicking an XML file (.xml) or a file with the extension .drawio Draw.io will start and open the file.
However - when I try the same with a file which is on top of the file list as "recommendation" or with an entry in the "recommendet files" box in the dashboard, XML files are always handled as text file and .drawio as unknown type, so only the file manager is opened with the file selected.
What is missing to make this work? Is this a bug in the recommendations app?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the recommendations shown at the top of the file list and in the dashboard, then compare their handling with the file manager behavior described in the issue. Check /config/mimetypemapping.json for the registered XML and .drawio types. Done means recommended files invoke the registered handler instead of treating XML as text or opening the file manager.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100