diff --git a/src/client.ts b/src/client.ts index 178626329..974d11cb5 100644 --- a/src/client.ts +++ b/src/client.ts @@ -1034,7 +1034,7 @@ export class StreamChat, ) { - const data = addFileToFormData(uri, name, contentType); + const data = addFileToFormData(uri, name, contentType || 'multipart/form-data'); if (user != null) data.append('user', JSON.stringify(user)); return this.doAxiosRequest('postForm', url, data, {