Repository navigation
Closed
Labels
2. developingWork in progressenhancementpending documentationThis pull request needs an associated documentation update🍀 2025-Spring
Milestone
Description
This has been discussed upfront with @sorbaugh and @AndyScherzinger
We should introduce a file conversion API that apps can register their ability to convert certain file types in certain other ones. In the beginning we will make use of this in richdocuments to be able to convert office files to PDF. The files app will then be able to make use of that API to provide a file action for conversion. Flow can also use this API for automation through OCS endpoints
- Server API to have a plugin architecture where apps can register file convertion handlers @elzody
- OCP API for apps to register their conversion capabilities and implement logic to convert files
- Input/output format tuples provided by apps
- Capabilities exposing possible file conversion formats
- Capability to limit file conversion to files below a configurable size threshold
- Add fake provider in the testing app
- OCS API to do synchronous file conversion
- OCP API for apps to register their conversion capabilities and implement logic to convert files
- richdocuments: Implement conversion for office to pdf files
- pandoc: Implement conversion for other types @juliusknorr
- Files app: File action to convert a file to a different type @skjnldsv feat(api): File conversion Files action #50123
Out of scope
- Asynchronous conversion for larger files
- Additional file types (e.g. video, image or more advanced AI related ones) -> should be planned separately
Reacted by Jonathan Treffler and Rinkana
Metadata
Metadata
Assignees
Labels
2. developingWork in progressenhancementpending documentationThis pull request needs an associated documentation update🍀 2025-Spring
Type
Projects
- StatusShow more project fields☑️ Done
- StatusShow more project fieldsDone
Activity
[-]File conversion[/-][+]📄💫 File conversion[/+]juliusknorr commentedon Dec 5, 2024
From discussion with @AndyScherzinger
juliusknorr commentedon Jan 23, 2025
@skjnldsv @elzody Would it make sense to move the jpg/png converter out of testing into the files app itself?
7 remaining items
HabiburRahmaan commentedon Apr 11, 2025
This is a very solid proposal — having a modular file conversion API with a plugin architecture is a smart and scalable direction.
A couple of suggestions and observations:
API Design: It might be useful to look at existing solutions like ApyHub’s File Conversion API for inspiration on format handling, error management, and performance constraints. Their format abstraction and clear endpoint documentation could inform our OCS API design.
Capability Registration: We should consider a lightweight way for apps to advertise their supported (inputFormat, outputFormat) pairs. This can help avoid hardcoded logic and support a dynamically growing conversion ecosystem.
Limits & Thresholds: The size threshold is a great idea. It could be extended later with time-based constraints (e.g. reject if estimated conversion time exceeds X).
Synchronous vs. Async: While async is out of scope for now, keeping the architecture open to both patterns will future-proof this. Maybe model the current API as convertNow() and plan for a queueConversion() style API for async tasks.
Security: We should be mindful of file sanitization and format-specific vulnerabilities during conversion, especially if apps implement custom handlers.
Testing & Mocks: Love the idea of a fake provider in the testing app — should also help in CI pipelines.
Looking forward to seeing richdocuments and pandoc as the first consumers — this will be a strong proof of concept and foundation for future file-type support.
juliusknorr commentedon May 26, 2025
Thanks for your additional feedback. I agree that mid-term an async approach would be more flexible. I'll close this as the scope of the initial feature was implemented, but we can discuss further improvements in follow up tickets of course.
github-actions commentedon Nov 21, 2026
This issue has been automatically locked because it has been closed for more than 14 days. As we do not monitor closed issues, we are locking this issue to prevent further comments from getting lost in the noise.
Please open a new issue if you have a similar problem instead. For general discussions, please use our forum: https://help.nextcloud.com