How to upload a page using S3/ Worker API.

I want to upload a zip file to a pages but the file is too large. How can i upload it?
3 Replies
Vero
Vero8mo ago
You can upload it to R2 https://developers.cloudflare.com/r2/objects/upload-objects/ and link to it from your page
Cloudflare Docs
Upload objects · Cloudflare R2 docs
You can upload objects to your bucket from the Cloudflare dashboard or using the Wrangler.
Chocorot
Chocorot8mo ago
how can i link the bucket to my page
Vero
Vero8mo ago
Create a Pages function that fetches the file from your R2 bucket using R2 bindings https://developers.cloudflare.com/pages/functions/bindings/#r2-buckets and deploy the Pages site
Cloudflare Docs
Bindings · Cloudflare Pages docs
A binding enables your Pages Functions to interact with resources on the Cloudflare developer platform. Use bindings to integrate your Pages Functions …
Want results from more Discord servers?
Add your server