<!--- Please keep this note for other contributors --> ### How to use GitHub * Please use the 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) 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. --- ## Feature request **Which Nextcloud Version are you currently using:** Nextcloud 34 (under development) **Is your feature request related to a problem? Please describe.** I'm working on making the collectives api usage within the app itself typesafe. * See https://github.com/nextcloud/collectives/pull/2465 https://github.com/nextcloud/collectives/blob/main/lib/Controller/PageController.php#L347 `PageController#uploadAttachment` uses ```php $this->request->getUploadedFile('file'); ``` However this is not mentioned in the [openapi spec](https://github.com/nextcloud/collectives/blob/main/openapi.json#L6251-L6307). Leading to typescript complaining about me providing the uploaded file in the request body. **Describe the solution you'd like** Some way of denoting that a request supports (actually requires) a file to be uploaded. **Describe alternatives you've considered** I'll try to work around the typescript errors.
Activity
max-nextcloud commentedon May 4, 2026
https://swagger.io/docs/specification/v3_0/describing-request-body/multipart-requests/ That would probably be the format we'd want.
update: or maybe https://swagger.io/docs/specification/v3_0/describing-request-body/file-upload/#upload-via-multipart-requests
Describe LibreSign's file uploads as multipart/form-data
mateuscmtropical commentedon Nov 10, 2026
Hi, I'd like to work on this one.
mateuscmtropical commentedon Nov 10, 2026
Hi, I've opened a PR for this: #401