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
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.
how can i link the bucket to my page
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 …