Merge pull request #1037 from hedgedoc/fix/mediaUploadPdf

MediaService: Remove allowedMimeType application/pdf
This commit is contained in:
Yannick Bungers 2021-03-15 23:08:46 +01:00 committed by GitHub
commit 5f9affd32e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 5 deletions

View file

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

View file

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