mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-17 21:11:42 -05:00
Merge pull request #1037 from hedgedoc/fix/mediaUploadPdf
MediaService: Remove allowedMimeType application/pdf
This commit is contained in:
commit
5f9affd32e
2 changed files with 0 additions and 5 deletions
|
@ -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
|
||||||
|
|
|
@ -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',
|
||||||
|
|
Loading…
Reference in a new issue