- ltdconveyor.s3.presignedpost.upload_file(*, local_path, post_url, post_fields)#
Upload a file using a presigned POST URL to S3.
This function should primarily be used by upload_dir.
local_path (pathlib.Path) – Path to the file being uploaded.
post_url (str) – URL to upload to.
post_fields (dict) – Dictionary of fields for the POST. Generally these fields are created by the LST Keeper API server when it generates the presigned URLs.
ltdconveyor.s3.exceptions.S3Error – Raised if the upload fails.
- Return type: