fix: update dependencies to latest + fix upload of files

This commit is contained in:
2023-07-22 16:34:23 +02:00
parent 41c2d95dde
commit 5a411ade19
42 changed files with 1382 additions and 8571 deletions

View File

@ -60,7 +60,12 @@ export const SendMessage: React.FC<SendMessageProps> = (props) => {
formData.append('file', file)
await authentication.api.post(
`/channels/${path.channelId}/messages/uploads`,
formData
formData,
{
headers: {
'Content-Type': 'multipart/form-data'
}
}
)
}
}