element-hq / element-hq/element-android
MIME type differs from what was shared
- Dominant language
- Kotlin
- Stars
- 3.7k
- Forks
- 917
- PR merge metrics
- No merged PRs in 30d
Description
#### Describe the bug
I shared a spec-conforming `application/geo+json` aka GeoJson, from [GeoNotes](https://github.com/hauke96/GeoNotes) to Element. GeoNotes does `setType("application/json")` [here](https://github.com/hauke96/GeoNotes/blob/d41d76fb5e38d9a0510912d7aa64c325030cc483/app/src/main/java/de/hauke_stieler/geonotes/export/Exporter.java#L37). But the displayed MIME type in the chat is `application/octet-stream`.
#### Expected behavior
Element should either use the MIME type `application/json`; or auto-detect `application/geo+json` (which it does if it has no information about the MIME type, as in #3858)
#### Smartphone (please complete the following information):
Element 1.1.12 from F-droid, on Android 7
Contributor guide
Assessment
This issue has not been assessed yet.