
Tech
How is R2 used for object storage?
Modern applications often need to store profile pictures, PDFs, documents, videos, and other media. Instead of storing these files directly in a database, we can use object storage .
Let's understand the complete flow with a simple example: uploading a profile picture .
R2 and the Database
Suppose a user wants to upload:
profile-image.png
We separate the actual file from its application metadata:
DATABASE CLOUDFLARE R2
ββββββββ ...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to