Short answer: for browser direct-to-storage uploads, choose the option with the clearest signed-URL lifecycle and deletion policy, then test CORS from the real Next.js origin. The provider name matters less than who can mint an upload, who can read an object, and when a tenant's data disappears.

For an edtech app storing product images, I would start with this decision matrix:

Need Sensible default Main catch
Fastest managed setup beside an existing app backend A managed storage integration You still need explicit tenant authorization and retention rules
Maximum control over object keys, policies, and lifecycle S3 presigned upload More IAM, signing, CORS, and cleanup configuration
S3-compatible object storage with direct browser writes Direct browser upload Check the exact signed-URL, egress, and regional behavior you need

The recommendation is boring on purpose: use the smallest surface that makes retention auditable. A simple upload is not a simple data policy.

How do signed URLs and CORS limits change the browser design?

The browser should have one deliberately boring contract. It asks the application for permission, uploads to the returned URL, and never sees a bucket credential. That contract is the part worth keeping when a storage provider changes.

A browser upload should prove four things before it reaches production: the caller is authorized for the tenant, the upload expires, the object key cannot escape that tenant's namespace, and a read URL cannot be reused forever. CORS only controls which browser origins may make a request. It does not decide whether a user is allowed to read another tenant's image.

Keep the signing step on a trusted server route. The browser asks for a short-lived upload URL; the server checks the session and tenant; the browser sends the bytes straight to storage. The application server then records the object key and retention class. This avoids turning Next.js into a file relay, but it also creates a small state machine that must be tested.

I use a 403 as a useful boundary in tests: an unauthenticated read should fail, while a valid, unexpired signed URL should succeed. That's an authorization assertion, not a CORS assertion. A browser error that mentions CORS can still be an authorization mistake, because the browser hides some response details when the origin is not allowed.

Why does tenant deletion need its own storage test?

For product images, deletion has at least three meanings: remove the current object, remove every derivative and export, and make future reads impossible. A database row marked deleted does none of those by itself.

Give each tenant a stable prefix, but don't treat a prefix as an access-control rule unless the storage policy actually enforces it. Store an immutable object identifier in your database, keep the original filename as metadata, and make exports contain a manifest of object IDs plus the tenant ID. That makes a deletion job inspectable instead of a loop over guessed filenames.

Lifecycle rules are useful for temporary uploads and abandoned exports. AWS documents object lifecycle management as a way to transition or expire objects, and the same idea applies to any storage system with retention policies. The catch is that expiry is not an immediate deletion API. Your policy should state the allowed delay, the export status transitions, and what an operator can verify.

A tenant-scoped export should be assembled from records already authorized for that tenant. Never accept a client-provided bucket key as the complete query. The server should derive the tenant scope from the authenticated session, select the objects, create the export, and issue a separate short-lived download URL. In a real test, I create two tenants with similar image names, issue one download intent, expire it, delete the first tenant, and then retry both the old URL and a newly minted URL. The expected result is specific: the old URL is rejected after its expiry, the deleted tenant has no eligible object record, and the second tenant's image is still available. I record each result with the object ID and policy version. This catches a surprisingly mundane class of failures: a cleanup worker that deletes database rows but leaves bytes behind, or an export worker that trusts a filename and crosses the tenant boundary. It also makes regional review concrete because the audit trail can show which bucket and policy were used for a given export rather than relying on a dashboard screenshot.

Short version: retention is a workflow, not a checkbox.

The three approaches expose different amounts of configuration, but the application contract can stay the same. Define two server operations: createUploadIntent and createDownloadIntent. Each returns a URL, an expiry timestamp, and the object ID. The client knows nothing about bucket credentials.

type UploadIntent = { objectId: string; putUrl: string; expiresAt: string; }; async function uploadImage(file: File, tenantId: string) { const intent = await fetch('/api/uploads/intent', { method: 'POST', headers: { 'content-type': 'application/json' }, body: JSON.stringify({ tenantId, contentType: file.type }), }).then((response) => response.json() as Promise<UploadIntent>); const result = await fetch(intent.putUrl, { method: 'PUT', headers: { 'content-type': file.type }, body: file, }); if (!result.ok) throw new Error(`upload failed: ${result.status}`); return intent.objectId; } 

The endpoint names above are application routes, not provider APIs. That distinction keeps a provider change from leaking through every React component. Configure the storage CORS allowlist with the exact production origin, permitted method, and required headers. Wildcards are convenient during a demo; they are a poor substitute for an authorization test.

I'm not sure any comparison table can settle Europe requirements by itself. Region availability, replication, data residency, and deletion guarantees are separate questions, so verify them against the current contract and the deployment region you will actually use.

What should a React and Next.js team compare after the demo?

A managed storage product can be the right fit when the team values a short path from auth to upload and accepts its policy model. It is not suitable when your retention audit needs primitives that the product does not expose clearly.

S3 presigned uploads fit teams that need detailed IAM and lifecycle controls, but they bring configuration weight. Stick with a simpler managed option when the team cannot afford to own signing, CORS, key policy, and cleanup reviews.

An S3-compatible option can reduce coupling to one object API, but compatibility is not a promise that every lifecycle, regional, or browser behavior matches. Choose it only after testing the operations your export job needs.

The useful benchmark is not just time-to-first-call. Measure time-to-prove that a deleted tenant cannot fetch an old signed URL. The second number is the one that protects users.

References