We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b9357a commit e84bcc1Copy full SHA for e84bcc1
projects/fal/src/fal/toolkit/file/providers/gcp.py
@@ -55,7 +55,9 @@ def save(self, data: FileData) -> str:
55
destination_path = os.path.join(self.folder, file_name)
56
57
gcp_blob = self.bucket.blob(destination_path)
58
- gcp_blob.upload_from_string(data.data, content_type=data.content_type)
+
59
+ with data.data as file:
60
+ gcp_blob.upload_from_file(file, content_type=data.content_type)
61
62
if self.url_expiration is None:
63
return gcp_blob.public_url
0 commit comments