mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2026-01-09 21:32:20 -06:00
fix: correction sending s3/minio media to chatwoot and typebot
This commit is contained in:
@@ -2689,7 +2689,9 @@ export class WAStartupService {
|
||||
mimetype = mediaMessage.mimetype;
|
||||
} else {
|
||||
if (isURL(mediaMessage.media)) {
|
||||
mimetype = getMIMEType(mediaMessage.media);
|
||||
const response = await axios.get(mediaMessage.media, { responseType: 'arraybuffer' });
|
||||
|
||||
mimetype = response.headers['content-type'];
|
||||
} else {
|
||||
mimetype = getMIMEType(mediaMessage.fileName);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user