mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 03:06:31 -05:00
fix(media-api): don't send Content-Type header
Apparently, multer gets confused by a content-type header: https://stackoverflow.com/questions/49692745/express-using-multer-error-multipart-boundary-not-found-request-sent-by-pos Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
b311265762
commit
be7983b9be
1 changed files with 0 additions and 1 deletions
|
@ -35,7 +35,6 @@ export const uploadFile = async (noteIdOrAlias: string, media: Blob): Promise<Me
|
|||
const postData = new FormData()
|
||||
postData.append('file', media)
|
||||
const response = await new PostApiRequestBuilder<MediaUpload, void>('media')
|
||||
.withHeader('Content-Type', 'multipart/form-data')
|
||||
.withHeader('HedgeDoc-Note', noteIdOrAlias)
|
||||
.withBody(postData)
|
||||
.sendRequest()
|
||||
|
|
Loading…
Reference in a new issue