How would I go about setting up CloudFlare R1 as a storage server?
loyahdev
PROOP

2 years ago

I'm wondering how I could do this as currently my project just saves files to its own ephemeral storage and then serves those files to users to view online but I'm wondering how I could do this with cloudflare r1 which was recommended to me from here.

7 Replies

loyahdev
PROOP

2 years ago

N/A


loyahdev
PROOP

2 years ago

By what I mean when saying serving those files to users to view online is I ahve an endpoint and a wildcard for the filename which it will then serve that files depending on there file name


brody
EMPLOYEE

2 years ago

use an S3 SDK to upload files to R2 and then return a signed URL to your users so they can download the files


brody
EMPLOYEE

2 years ago

but I would recommend watching some videos on this subject, because unfortunately we aren't able to offer coding help here, these help threads are intended for platform help


loyahdev
PROOP

2 years ago

oh okay thanks


loyahdev
PROOP

2 years ago

Just updating on this I was able to get it working perfectly and it’s prices are amazing thank you


loyahdev
PROOP

2 years ago

I had to use a few workers routes but it worked in the end


Loading...