Skip to content

Commit

Permalink
Replace jpeg to jpg for attachment upload (#531)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwin1111 authored Dec 6, 2023
1 parent 596dda8 commit e864407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/quickbooks_online/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 []
Expand Down

0 comments on commit e864407

Please sign in to comment.