Issue Description
Markdown files uploaded using WebDAV have a media type of inode/directory, instead of text/markdown.
When they are then accessed using JMAP they have media type of application/octet-stream, which is supposed to mean generic binary data.
Expected Behavior
A Markdown file should have a media type of text/markdown. This should either be inferred from the file name extension, if present, or from content sniffing.
Reproduction Steps
- Connect to the Stalwart WebDAV server using the Add Network Drive command in the desktop file manager.
- Drag and drop
example.md(any Markdown file) into the remote Stalwart folder. - Use the Show Details command in the file manager to see the media type. It shows
inode/directorywhen it should saytext/markdown.
Do the same with another WebDAV server (e.g. Synology), and the media type is correctly shown as text/markdown.
Connect to Stalwart via JMAP and use FileNode/get to ask for all files. In the response, example.md has type set to application/octet-stream instead of text/markdown.
Stalwart Version
v0.16.x
Installation Method
Docker
Database Backend
RocksDB
Blob Storage
RocksDB
Search Engine
Internal
Directory Backend
Internal
Additional Context
Operating system: Pop!_OS 24.04 LTS
File manager: COSMIC Files
I have reviewed the documentation and FAQ and confirm that my issue is NOT addressed there.
on
I have searched this support forum (open and closed topics) and confirm this is not a duplicate.
on
I understand that topics in this category are triaged by a bot first but a human reply will follow up. If I’d prefer a human-only reply, I’ll add the no-ai tag to my topic.
on