presignedUrl, presignedGet, presignedPut, presignedPost not working in cloudflare r2

presignedUrl, presignedGet, presignedPut, presignedPost not working in Cloudflare r2.

is that possible, how can i do that

How are you generating them, what’s an example of one of the URLs, what error are you receiving, etc…

Hi we are facing a similar issue , we are using boto3 sdk to generate pre-signed upload url , while pre-signed get urls were working, put urls throw 400 , we tested the same flow to generate minio s3 upload pre-signed url and used it. that was functional . using generate_presigned_post() method from boto3 . example:
{
“url”: “https://account_id.r2.cloudflarestorage.com/bucket_name”,
“fields”: {
“key”: “folder/subfolder/…d9-df7bb9039e61”,
“x-amz-algorithm”: “AWS4-HMAC-SHA256”,
“x-amz-credential”: “/20230124/us-east-1/s3/aws4_request”,
“x-amz-date”: “20230124T073641Z”,
“policy”: “eyJleHBpcmF0aW9uIjogIjIwMjMtMDEtMjRUMDg6MzY6NDFaIiwgImNvbmRpdGlvbnMiOiBbWyJjb250ZW50LWxlbmd0aC1yYW5nZSIsIDAsIDUyNDI4ODAwXSwgeyJidWNrZXQiOiAicHJhY3RpZmx5LWN1c3RvbWVyLWRhdGEifSwgeyJrZXkiOiAidGVzdDEvcHJhY3RpZmx5LWN1c3RvbWVyLWRhdGEvaW1hZ2UvNTZjZjU5N2MtNjQ3Zi00ODdmLWEwZDktZGY3YmI5MDM5ZTYxIn0sIHsieC1hbXotYWxnb3JpdGhtIjogIkFXUzQtSE1BQy1…Q==”,
“x-amz-signature”: “bbfde01d9d955a5893d…”
}
}

Is this Presigned POST or a Presigned PutObject URL?

Presigned POST isn’t yet supported - and given that your snippet says policy, I suspect it’s POST.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.