Add an "Ebooks" category in file filters to recognize EPUB, MOBI, and other eBook formats
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 36.9k
- Forks
- 5.2k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 713
Description
How to use GitHub
- Please use the 👍 reaction to show that you are interested into the same feature.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
Is your feature request related to a problem? Please describe.
Currently, Nextcloud does not recognize EPUB files (or other eBook formats like MOBI, FB2, etc.) as a specific file type in the file listing filters. Instead, EPUB files appear as "unknown" or simply as regular files.
This limitation makes it difficult to filter and manage eBooks in Nextcloud, especially for users who store large digital libraries. Right now, users can only filter by "Documents," but EPUBs and other eBooks do not appear in this category.
Describe the solution you'd like
It would be great to introduce a new "Ebooks" category in the file filter section, alongside existing categories like Documents, PDFs, Audio, and Video.
This new category should automatically include file types like:
- application/epub+zip (EPUB)
- application/x-mobipocket-ebook (MOBI)
- application/fb2+xml (FB2)
- application/vnd.comicbook+zip (CBZ)
- application/vnd.comicbook-rar (CBR)
Describe alternatives you've considered
- Manually tagging files – While Nextcloud allows users to tag files, it does not provide an easy way to filter by MIME type, making this an impractical workaround for large collections.
- Using third-party apps – Some apps (like EPUB viewers) allow opening eBooks, but they do not modify the way files are categorized in Nextcloud's UI.
- Editing the database manually – Modifying the MIME type database could work temporarily, but this is not a long-term or sustainable solution, as it could break with updates.
Additional context
Adding an "Ebooks" category would significantly improve file organization for users managing digital libraries, online reading rooms, or personal book collections within Nextcloud.
A potential enhancement could also be to allow users to customize file categories in the settings, so they can define their own file groups based on MIME types.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files, tests, or entry points. Start by locating the file-filter category definitions and MIME-type mappings, then trace the existing Documents, PDFs, Audio, and Video filters; done means EPUB, MOBI, FB2, CBZ, and CBR files appear under a working Ebooks category with suitable coverage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100