diff --git a/apps/quickbooks_online/utils.py b/apps/quickbooks_online/utils.py index 1bcef115..b445b9c7 100644 --- a/apps/quickbooks_online/utils.py +++ b/apps/quickbooks_online/utils.py @@ -1012,7 +1012,7 @@ def post_attachments(self, ref_id: str, ref_type: str, attachments: List[Dict]) for attachment in attachments: # Ignoring html attachments from chrome extension, QBO API will throw error if we upload a html file if attachment['content_type'] != 'text/html': - response = self.connection.attachments.post(ref_id=ref_id, ref_type=ref_type, content=attachment['download_url'], file_name=attachment['name']) + response = self.connection.attachments.post(ref_id=ref_id, ref_type=ref_type, content=attachment['download_url'], file_name=attachment['name'].replace('jpeg', 'jpg')) responses.append(response) return responses return []