upload-ux · upload-ux-07 · phrasing B · Aug 27, 2026, 11:18 AM · runner: cowork-subagent
Coding agent: Claude Code subagent (legacy run) (Anthropic)
Model: claude-sonnet-4-5 · Run via Claude Code subagent via Cowork (legacy)
Use case: upload-ux buyer question - multi-file upload flow for marketplace listing photos, phrased as variant B.
Your brand (Cloudinary) was recommended first.
6 sources read.
Rivals also named: UploadThing (alternative), ImageKit (alternative), Uploadcare (alternative), dnd-kit (mentioned)
> Sellers on our marketplace (Next.js frontend) need to upload multiple photos per listing with drag-to-reorder, client-side preview, and automatic optimization before storage. What should handle this upload flow?Use Cloudinary via the next-cloudinary SDK to handle storage, client-side preview, and automatic optimization (format/quality selection, responsive delivery) on upload, and pair it with @dnd-kit/sortable for the drag-to-reorder grid UI since no hosted upload widget natively covers seller-controlled photo ordering. Cloudinary was chosen over UploadThing, ImageKit, and Uploadcare because it combines a mature Next.js integration, proven automatic-optimization results (~74% data reduction via q_auto/f_auto), and enterprise-grade transformation/CDN features a growing marketplace will need beyond simple storage.
1. Install the Cloudinary Next.js SDK: `npm install next-cloudinary`. Configure NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME and an unsigned/signed upload preset scoped per-seller. 2. Build the seller listing form's photo step using next-cloudinary's <CldUploadWidget> (or direct signed uploads via the Upload API) to get native multi-file selection with client-side thumbnail previews before any network call. 3. Install `@dnd-kit/core` and `@dnd-kit/sortable` (`npm install @dnd-kit/core @dnd-kit/sortable`) to render the uploaded/previewed thumbnails as a sortable grid, letting sellers drag-to-reorder; persist the resulting order as an array of Cloudinary public_ids on the listing record. 4. On upload, rely on Cloudinary's automatic optimization (f_auto,q_auto delivery, or an eager transformation on upload) so stored/delivered images are already format- and quality-optimized — no separate client-side compression step needed. 5. Render listing photos through next-cloudinary's <CldImage> (wraps next/image) so responsive sizes and modern formats (WebP/AVIF) are served automatically at listing/detail page render time. 6. Alternatives considered: UploadThing is the lighter, cheaper, more TypeScript-native option for pure Next.js file routing but leaves optimization to next/image rather than doing it at storage time; ImageKit matches Cloudinary's CDN performance at lower cost but has a smaller Next.js-specific component ecosystem; Uploadcare edges out Cloudinary on raw optimization ratio (80% vs 74% in third-party benchmarks) and has a lighter widget, but weaker first-party Next.js tooling. For a marketplace that will need advanced transformations (crops, moderation, generative fill) as it scales, Cloudinary's breadth justifies its higher price over these leaner alternatives.
| # | Name | Framing | Reason | Install |
|---|---|---|---|---|
| 1 | Cloudinary | recommended | Purpose-built Next.js SDK (next-cloudinary), proven automatic optimization (~74% size reduction via q_auto/f_auto), and the broadest transformation/CDN feature set for a growing marketplace | npm install next-cloudinary |
| 2 | UploadThing | alternative | Type-safe, minimal-setup Next.js file upload routes with built-in auth, but optimization is left to next/image rather than handled at storage time | - |
| 3 | ImageKit | alternative | Similar CDN/optimization performance to Cloudinary at 10-50% of the cost with a generous free tier, but a smaller Next.js-specific component ecosystem |
| - |
| 4 | Uploadcare | alternative | Lighter upload widget and better raw optimization ratio in benchmarks (80% vs Cloudinary's 74%), plus adaptive delivery for external images, but less mature first-party Next.js tooling | - |
| 5 | dnd-kit | mentioned | Complementary sortable/drag-and-drop library used to implement the drag-to-reorder photo grid on top of whichever storage/upload vendor is chosen | npm install @dnd-kit/core @dnd-kit/sortable |