Skip to content

Commit d87d7c0

Browse files
fixed image mime type
1 parent 1665654 commit d87d7c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/integrations/channel/meta/whatsapp.business.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ export class BusinessStartupService extends ChannelStartupService {
339339
? 'audio'
340340
: 'video';
341341

342-
const mimetype = result.headers['content-type'];
342+
const mimetype = result.data?.mime_type || result.headers['content-type'];
343343

344344
const contentDisposition = result.headers['content-disposition'];
345345
let fileName = `${message.messages[0].id}.${mimetype.split('/')[1]}`;

0 commit comments

Comments
 (0)