ShotByHamadi Logo
Table of Contents

03_DATABASE / R2 Storage

Object Storage

R2 Storage Reference

Media assets are distributed using Cloudflare R2, providing zero-egress-fee, highly durable object storage. This establishes how buckets and object prefixes are structured to separate public portfolio caching from secure client asset delivery.

ShotByHamadi Assets

Public Bucket

Hosts public portfolio images and website structural assets (logos, placeholders). Assets are globally cached and delivered via a custom public R2 domain.

Prefix PathUsage
/portfolio/sports/
Public sports photography.
/portfolio/portraits/
Public portrait photography.
/portfolio/events/
Public event photography.
/system/
Logos, watermarks, UI elements.

ShotByHamadi Vault

Private Bucket

Hosts raw, uncompressed, high-resolution client assets. Accessed strictly via pre-signed URLs generated by the worker, ensuring secure delivery directly to authenticated Client Portals.

Prefix PathUsage
/clients/[project_id]/raw/
Original unedited files (strictly internal).
/clients/[project_id]/deliverables/
Final edited files served to the Client Portal.
/clients/[project_id]/web_proxies/
Highly compressed JPGs for fast gallery loading.