fixed image mime type

This commit is contained in:
Alan Cezar 2024-11-14 09:07:57 -03:00
parent 1665654676
commit d87d7c0775

View File

@ -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]}`;