diff --git a/core/js/mimetypelist.js b/core/js/mimetypelist.js index 760d7baab7..43f01273f5 100644 --- a/core/js/mimetypelist.js +++ b/core/js/mimetypelist.js @@ -74,6 +74,7 @@ OC.MimeTypeList={ "text/csv": "x-office/spreadsheet", "text/html": "text/code", "text/x-c": "text/code", + "text/x-c++src": "text/code", "text/x-h": "text/code", "text/x-java-source": "text/code", "text/x-python": "text/code", diff --git a/resources/config/mimetypealiases.dist.json b/resources/config/mimetypealiases.dist.json index d0019c4f0a..ed471f228e 100644 --- a/resources/config/mimetypealiases.dist.json +++ b/resources/config/mimetypealiases.dist.json @@ -74,6 +74,7 @@ "text/csv": "x-office/spreadsheet", "text/html": "text/code", "text/x-c": "text/code", + "text/x-c++src": "text/code", "text/x-h": "text/code", "text/x-java-source": "text/code", "text/x-python": "text/code", diff --git a/resources/config/mimetypemapping.dist.json b/resources/config/mimetypemapping.dist.json index e7c0887181..e26ec7038b 100644 --- a/resources/config/mimetypemapping.dist.json +++ b/resources/config/mimetypemapping.dist.json @@ -36,7 +36,7 @@ "csv": ["text/csv"], "cvbdl": ["application/x-cbr"], "c": ["text/x-c"], - "c++": ["text/x-c"], + "c++": ["text/x-c++src"], "dcr": ["image/x-dcraw"], "deb": ["application/x-deb"], "dng": ["image/x-dcraw"],