Cloudflare DevelopersCD
Cloudflare Developers2y ago
4 replies
AGill

Hey guys I'm `PUT`ing into my R2 bucket

Hey guys I'm PUTing into my R2 bucket with some customMetadata -- I can see that the PUT command does return the metaData. But when I refresh the data using LIST -- the returned objects do not contain the customMetadata. I confirmed in R2 dashboard that the object does have the customMetadata.

Looks like the LIST method does not retrieve the metadata? I am referencing R2Object.customMetadata. See screenshots of api response to my worker functions
Screenshot_2024-06-23_at_12.39.54_PM.png
Screenshot_2024-06-23_at_12.40.08_PM.png
Screenshot_2024-06-23_at_12.40.27_PM.png
Was this page helpful?