Skip to content

Commit

Permalink
Fix not necessary to use additional read
Browse files Browse the repository at this point in the history
  • Loading branch information
kalisp committed Sep 20, 2024
1 parent a97045f commit 514f5fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/ayon_slack/plugins/publish/integrate_slack_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ def _upload_attachments(self, publish_files):
with open(published_file, "rb") as f:
uploaded_file = self.client.files_upload_v2(
filename=os.path.basename(published_file),
file=f.read()
file=f
)
file_urls.append(uploaded_file.get("file").get("permalink"))

Expand Down

0 comments on commit 514f5fd

Please sign in to comment.