Skip to main content

UploadToSignedUrlFailure Objects

class UploadToSignedUrlFailure()
Details of a failed upload attempt to a signed URL.

exception

The exception instance raised during the failed upload.

file_path

Path to the file that failed to upload.

title

Title or identifier associated with the file.

signed_url

The signed URL that the file upload was attempted against.

upload_to_signed_url_list_for_single_file

def upload_to_signed_url_list_for_single_file(
        failures: List[UploadToSignedUrlFailure], file_path: Union[str, Path],
        title: str, signed_url: str, upload_item_type: StorageItemType,
        max_retries: int, backoff_factor: float) -> None
Attempt to upload a single file to a signed URL, appending failures if any occur. Arguments:
  • failures List[UploadToSignedUrlFailure] - A list to append failures to.
  • file_path Union[str, Path] - Path of the file to upload.
  • title str - Title or identifier for the file.
  • signed_url str - The signed URL to upload the file to.
  • upload_item_type StorageItemType - The type of the file being uploaded.
  • max_retries int - Maximum number of retries in case of failure.
  • backoff_factor float - Backoff factor for retry delays.
โŒ˜I