nextcloud / nextcloud/recommendations

Registered MIME types are ignored

Open
#340 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. to triage bug
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.