ermiya
ermiya
CDCloudflare Developers
Created by ermiya on 12/10/2023 in #general-help
`CopyObject` S3 compatibility
CopyObject S3 compatibility S3 clients will send the x-amz-tagging-directive which is unsupported as per https://developers.cloudflare.com/r2/api/s3/api/. Has anyone actually been able to use CopyObject with R2 in that case? The S3 API will either use a value of REPLACE or COPY and defaults to COPY and I can definitely see that COPY is unsupported at the very least. Can someone confirm that R2 works without this header being passed through, and that internally instead of defaulting to COPY it's then no-op? If so, it shouldn’t take too long to just at least not throw an error to allow the clients to copy objects. Otherwise, I will have to go extremely low level and send an API request manually to bypass client behaviour of sending this header. It's not really dev friendly for CloudFlare to not adhere to default client implementation when trying to provide S3 compatibility...
38 replies