How to use R2 on nodejs
i want to make upload file with expressjs and nodejs using the R2 from cloudflare but i couldn't found a docs for it
2 Replies
R2 is S3 Compatiable. You can find a tutorial for it using S3, and chances are you would be able to use R2 instead. There's docs on setting up a few common js sdks with r2 here: https://developers.cloudflare.com/r2/examples/aws/aws-sdk-js-v3/
aws-sdk-js-v3 · Cloudflare R2 docs
You must generate an Access Key before getting started. All examples will utilize access_key_id and access_key_secret variables which represent the …
so uh how to upload?