mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 01:36:29 -05:00
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:
parent
96396ea237
commit
6e29ffba65
2 changed files with 0 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -47,7 +47,6 @@ export class MediaService {
|
|||
|
||||
private static isAllowedMimeType(mimeType: string): boolean {
|
||||
const allowedTypes = [
|
||||
'application/pdf',
|
||||
'image/apng',
|
||||
'image/bmp',
|
||||
'image/gif',
|
||||
|
|
Loading…
Reference in a new issue