Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[enhancement] NC needs a mime type handler selector #8105

Open
Yetangitu opened this issue Jan 29, 2018 · 5 comments
Open

[enhancement] NC needs a mime type handler selector #8105

Yetangitu opened this issue Jan 29, 2018 · 5 comments
Labels
1. to develop Accepted and waiting to be taken care of enhancement feature: files

Comments

@Yetangitu
Copy link

Yetangitu commented Jan 29, 2018

Now that I implemented PDF support in Reader the need for an official way to select which app to use to handle a give mime type is starting to become an issue. Both NC and OC have an 'official' PDF viewer which does its job quite well and which might for one reason or another be preferred by Reader users over the version I implemented (even though Reader supports things like 2-page spread, position saving, night mode and bookmarks which the official/Mozilla viewer lacks). I could just add a personal preference section to allow users to choose which mime types Reader should handle but that is not a good solution in the light of a multitude of apps all handling the same mime type.

NC (and OC) need a mime type handler selector in the lines of the one used in Firefox:

image

Is something like this in the works?

@Spartachetto
Copy link

I think this is related to the discussion in nextcloud/files_texteditor#15 .

If you read the comment of @tYYGH on 23 Nov 2017, a part of the solution could be a "mime type handler selector"

@Spartachetto
Copy link

This should be strongly related to #7098.

@szaimen
Copy link
Contributor

szaimen commented May 21, 2021

I suppose this issue is still valid? If not, please close this issue!

@rosa2
Copy link

rosa2 commented Jan 18, 2022

Any work in this, please? It is very necessary if you use Collabora and OnlyOffice.

@jmchantrein
Copy link

In the meantime and if it can help some people, it is possible to disable the default opening by richdocuments of doc, docx, xls, xlsx, ... by commenting the following lines in the file custom_apps/richdocuments/lib/Capabilities.php:

public const MIMETYPES = [
                'application/vnd.oasis.opendocument.text',
                'application/vnd.oasis.opendocument.spreadsheet',
                'application/vnd.oasis.opendocument.graphics',
                'application/vnd.oasis.opendocument.presentation',
                'application/vnd.oasis.opendocument.text-flat-xml',
                'application/vnd.oasis.opendocument.spreadsheet-flat-xml',
                'application/vnd.oasis.opendocument.graphics-flat-xml',
                'application/vnd.oasis.opendocument.presentation-flat-xml',
                //'application/vnd.lotus-wordpro',
                //'application/vnd.visio',
                //'application/vnd.ms-visio.drawing',
                //'application/vnd.wordperfect',
                //'application/msonenote',
                //'application/msword',
                'application/rtf',
                'text/rtf',
                //'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
                //'application/vnd.openxmlformats-officedocument.wordprocessingml.template',
                //'application/vnd.ms-word.document.macroEnabled.12',
                //'application/vnd.ms-word.template.macroEnabled.12',
                //'application/vnd.ms-excel',
                //'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
                //'application/vnd.openxmlformats-officedocument.spreadsheetml.template',
                //'application/vnd.ms-excel.sheet.macroEnabled.12',
                //'application/vnd.ms-excel.template.macroEnabled.12',
                //'application/vnd.ms-excel.addin.macroEnabled.12',
                //'application/vnd.ms-excel.sheet.binary.macroEnabled.12',
                //'application/vnd.ms-powerpoint',
                //'application/vnd.openxmlformats-officedocument.presentationml.presentation',
                //'application/vnd.openxmlformats-officedocument.presentationml.template',
                //'application/vnd.openxmlformats-officedocument.presentationml.slideshow',
                //'application/vnd.ms-powerpoint.addin.macroEnabled.12',
                //'application/vnd.ms-powerpoint.presentation.macroEnabled.12',
                //'application/vnd.ms-powerpoint.template.macroEnabled.12',
                //'application/vnd.ms-powerpoint.slideshow.macroEnabled.12',
                'text/csv'
        ];

In this way, OnlyOffice will take over the task of opening file with extensions OpenXML, doc, xls, ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop Accepted and waiting to be taken care of enhancement feature: files
Projects
Files to vue
  
Enhancements
Development

No branches or pull requests

8 participants