Skip to content

Commit

Permalink
fix(toolkit): MultipartUpload -> InternalMultipartUploadV3 (#412)
Browse files Browse the repository at this point in the history
* fix(toolkit): MultipartUpload -> InternalMultipartUploadV3

* Update projects/fal/src/fal/toolkit/file/providers/fal.py
  • Loading branch information
efiop authored Feb 11, 2025
1 parent e6e602c commit 4eeab32
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions projects/fal/src/fal/toolkit/file/providers/fal.py
Original file line number Diff line number Diff line change
Expand Up @@ -1098,11 +1098,13 @@ def save_file(
object_lifecycle_preference: dict[str, str] | None = None,
) -> tuple[str, FileData | None]:
if multipart is None:
threshold = multipart_threshold or MultipartUpload.MULTIPART_THRESHOLD
threshold = (
multipart_threshold or InternalMultipartUploadV3.MULTIPART_THRESHOLD
)
multipart = os.path.getsize(file_path) > threshold

if multipart:
url = MultipartUpload.save_file(
url = InternalMultipartUploadV3.save_file(
file_path,
chunk_size=multipart_chunk_size,
content_type=content_type,
Expand Down

0 comments on commit 4eeab32

Please sign in to comment.