Skip to content

Commit

Permalink
also multipart
Browse files Browse the repository at this point in the history
  • Loading branch information
efiop committed Feb 18, 2025
1 parent d1452bc commit a168fce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions projects/fal/src/fal/toolkit/file/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,13 @@ def from_path(
"object_lifecycle_preference", object_lifecycle_preference
)

save_kwargs.setdefault("multipart", multipart)
fallback_save_kwargs.setdefault("multipart", multipart)

try:
url, data = repo.save_file(
file_path,
content_type=content_type,
multipart=multipart,
**save_kwargs,
)
except Exception:
Expand All @@ -228,7 +230,6 @@ def from_path(
url, data = fallback_repo.save_file(
file_path,
content_type=content_type,
multipart=multipart,
**fallback_save_kwargs,
)

Expand Down

0 comments on commit a168fce

Please sign in to comment.