mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-22 12:06:54 -06:00
fixed image mime type
This commit is contained in:
parent
1665654676
commit
d87d7c0775
@ -339,7 +339,7 @@ export class BusinessStartupService extends ChannelStartupService {
|
||||
? 'audio'
|
||||
: 'video';
|
||||
|
||||
const mimetype = result.headers['content-type'];
|
||||
const mimetype = result.data?.mime_type || result.headers['content-type'];
|
||||
|
||||
const contentDisposition = result.headers['content-disposition'];
|
||||
let fileName = `${message.messages[0].id}.${mimetype.split('/')[1]}`;
|
||||
|
Loading…
Reference in New Issue
Block a user