Listing photos and documents for marketplaces
Dreep stores each listing photo once and serves every size your marketplace needs from saved presets. Sellers upload straight from the browser, duplicate photos are skipped by content hash, and ownership documents sit in signed folders only your reviewers can open.
How it works
Your backend holds the API key. The seller's browser only ever sees a single-use upload URL.
- 1
Seller picks photos
Browser hashes each file
- 2
Your backend presigns
folder: listings/{id}
- 3
Parallel PUTs
Duplicates skipped
- 4
Confirm
Asset becomes ready
- 5
Presets on delivery
Thumb, card, gallery, zoom
Presign and confirm on your backend
Check that the seller owns the listing, then presign. After the browser uploads, confirm and request any preset with ?p=.
import { Dreep } from "dreep";
const dreep = new Dreep({ apiKey: process.env.DREEP_API_KEY });
// Check first that the signed-in seller owns listingId.
export const presignListingPhoto = ({ listingId, filename, contentType, sizeBytes, contentHash }) =>
dreep.presignUpload({
filename,
contentType,
sizeBytes,
contentHash,
folder: "listings/" + listingId,
});
export const confirmListingPhoto = async ({ id }) => {
const asset = await dreep.confirmUpload({ id });
return { id: asset.id, card: dreep.url(asset, { preset: "listing_card" }) };
};// Check first that the signed-in seller owns listingID.
upload, err := client.PresignUpload(ctx, dreep.PresignOptions{
Filename: filename,
ContentType: contentType,
SizeBytes: sizeBytes,
ContentHash: contentHash,
Destination: dreep.Destination{Folder: "listings/" + listingID},
})
if err != nil {
return err
}
// Send upload.UploadURL to the browser, unless upload.AlreadyExists.# 1. Presign (server side)
curl -X POST https://api.dreep.cloud/api/v1/upload/presign \
-H "Authorization: Bearer $DREEP_API_KEY" \
-H "Content-Type: application/json" \
-d '{"filename":"kitchen.jpg","contentType":"image/jpeg","sizeBytes":2483011,"folder":"listings/8841"}'
# 2. PUT the bytes to uploadUrl
curl -X PUT "$UPLOAD_URL" -H "Content-Type: image/jpeg" --data-binary @kitchen.jpg
# 3. Confirm, then request a preset
curl -X POST https://api.dreep.cloud/api/v1/upload/$UPLOAD_ID/confirm \
-H "Authorization: Bearer $DREEP_API_KEY"
curl -o card.webp "https://cdn.dreep.cloud/api/v1/fetch/$UPLOAD_ID?p=listing_card"Why marketplaces use it
Presets per UI slot
Change the card size in one place, with no code change and no re-upload.
Content-hash dedupe
Re-listing the same property or car skips the upload entirely.
Signed verification folders
ID and ownership documents only open through short-lived links your backend issues.
Frequently asked questions
Should I resize listing photos on upload or on delivery?
On delivery, for most marketplaces. Keep the original and request sizes through presets, so you can add a new card size next year without re-uploading anything.
How do I stop sellers uploading to someone else's listing?
Authorise on your backend before you call presign. Dreep validates the file, but it does not know which of your users owns which listing.
Can sellers upload iPhone HEIC photos?
Yes. HEIC and HEIF are accepted inputs. Request format=webp or format=avif on delivery and buyers get a format their browser can display.
What happens if we run out of transformations mid-month?
Requests for new variants return LIMIT_EXCEEDED. There is no automatic overage billing. Buy a one-time pack or upgrade.
Set up your listing presets on the free plan
Create a project, save a card preset and upload a test listing from your browser.