Skip to content

Commit

Permalink
use X-Fal-File-Name to set file name
Browse files Browse the repository at this point in the history
  • Loading branch information
efiop committed Jun 12, 2024
1 parent 2eca8c2 commit cd3d2a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions projects/fal/src/fal/toolkit/file/providers/fal.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ def save(
**self.auth_headers,
"Accept": "application/json",
"Content-Type": file.content_type,
"X-Fal-File-Name": file.file_name,
"X-Fal-Object-Lifecycle-Preference": json.dumps(
dataclasses.asdict(GLOBAL_LIFECYCLE_PREFERENCE)
),
Expand Down

0 comments on commit cd3d2a7

Please sign in to comment.