MediaService: Remove allowedMimeType application/pdf

Uploading PDFs does not work with imgur and therefore HedgeDoc should not offer that.

See #533

Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
Philip Molares 2021-03-15 22:41:40 +01:00 committed by David Mehren
parent 96396ea237
commit 6e29ffba65
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
2 changed files with 0 additions and 5 deletions

View file

@ -496,10 +496,6 @@ paths:
required: true required: true
description: The binary file to upload. description: The binary file to upload.
content: content:
application/pdf:
schema:
type: string
format: binary
image/apng: image/apng:
schema: schema:
type: string type: string

View file

@ -47,7 +47,6 @@ export class MediaService {
private static isAllowedMimeType(mimeType: string): boolean { private static isAllowedMimeType(mimeType: string): boolean {
const allowedTypes = [ const allowedTypes = [
'application/pdf',
'image/apng', 'image/apng',
'image/bmp', 'image/bmp',
'image/gif', 'image/gif',