diff --git a/src/api/public/media/media.controller.ts b/src/api/public/media/media.controller.ts index 388121045..27f960c23 100644 --- a/src/api/public/media/media.controller.ts +++ b/src/api/public/media/media.controller.ts @@ -67,7 +67,15 @@ export class MediaController { @Post() @ApiConsumes('multipart/form-data') @ApiBody({ - description: 'The binary file to upload', + schema: { + type: 'object', + properties: { + file: { + type: 'string', + format: 'binary', + }, + }, + }, }) @ApiHeader({ name: 'HedgeDoc-Note',