Function esthri::presign_put
source · pub async fn presign_put(
s3: &Client,
bucket: impl AsRef<str>,
key: impl AsRef<str>,
expiration: Option<Duration>,
opts: EsthriPutOptParams
) -> Result<String>
Expand description
Generate a presigned URL for a client to use to upload a file.
The file can be deleted using an HTTP PUT on this URL.
Note that the headers Content-Length
, x-amz-acl
, x-amz-storage-class
and x-amz-meta-esthri_compress_version
may need to be set.