Cloudflare Images With Analytics
I'm developing a solution that allows users to upload images, and the images are being uploaded to my Cloudflare images account.
I need to define limits for the number of images uploaded by a single user, and I also want to rate the limit serving the images based on their subscription plan.
My idea:
I need to define limits for the number of images uploaded by a single user, and I also want to rate the limit serving the images based on their subscription plan.
My idea:
- Upload images to my Cloudflare images account.
- Each user uploads will be uploaded to a directory-like path. Users/image.png
- Serve the images using the custom domain, and define a worker rules to fetch the analytics to check if the user has quota left before serving the image.