Use case: avatars and galleries
Avatars, logos and galleries for your SaaS app
Profile photos, logos and galleries uploaded once and shown at every size by changing the URL.
SaaS avatars and galleries
- Features that fit6
- Image API
- File uploads
The problem
Every app ends up with profile photos, team logos and a gallery or two. Each needs an uploader, storage, and the picture at a handful of sizes: a 32px avatar, a card, a full-screen view.
Making and storing each size yourself means a pipeline to maintain, and a migration every time the design changes.
The Fileboy features that fit
Resize with a URL
Store one ID per image and ask for any size in the URL, with crops, fit and format. Changing a size is a change to the URL, with no copies to store or remake. Image transformations are unlimited on every plan.
Square avatars that keep the face
A cover resize with a face-aware focus keeps faces whole and in view, and falls back to the most detailed part of the image when there are none. It finds where faces are, not who they are.
Uploaders for your framework
A drop zone for the browser, React, Vue, Svelte and Next.js, with progress, a check on the type before it leaves the browser, and one or many files.
Folders for galleries
Nested folders you can browse in the dashboard and use from the API, with your own metadata and labels. Moving a file between folders never changes its URL.
Private photos
Make an app, or a single file, readable only with an expiring URL signed on your server. Location data in photos can be removed at upload.
Scanning and moderation
Uploads are virus scanned. On the AI add-on, a moderation check can quarantine a flagged image until you release it.
A short code path
import { FileboyProvider, Image, MultiFileUploader } from "@cd2/fileboy-react"
export function Gallery({ photoIds, onAdded }: { photoIds: string[]; onAdded(ids: string[]): void }) {
return (
<FileboyProvider publicKey="YOUR_PUBLIC_KEY">
<MultiFileUploader allow="image/*" onFilesUploaded={files => onAdded(files.map(f => f.id))} />
{photoIds.map(id => (
<Image
key={id}
id={id}
transforms={[
{ type: "resize", width: 400, height: 300, fit: "cover" },
{ type: "format", format: "webp" },
]}
/>
))}
</FileboyProvider>
)
}
export function Avatar({ fileId, size = 48 }: { fileId: string; size?: number }) {
return (
<Image
id={fileId}
transforms={[{ type: "resize", width: size * 2, height: size * 2, fit: "cover", position: "top" }]}
imgProps={{ width: size, height: size, alt: "", style: { borderRadius: "50%" } }}
/>
)
}Save each file's id in your database. Ask for twice the displayed size so images stay sharp on high-density screens.
What Fileboy does not do here
- A full digital asset manager, with approval workflows and collections.
- Generative image editing as a URL transform. AI background removal and upscaling are API calls that make a new file, on paid plans.
Guides, docs and product pages
- Image API
- File uploads
- Guide: add image upload to a React app
- Guide: crop user avatars and thumbnails
- Guide: serve responsive images without a build step
- React library
Other use cases: Course videos · Product demos · User-generated clips · Screen recordings for support · Pricing · Compare alternatives
Try it with your own files
Create a free app, paste your public key into the code on this page and upload something of yours. The free plan needs no card.