uploadtestserver

command
v0.62.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2026 License: MIT Imports: 29 Imported by: 0

Documentation

Overview

Command uploadtestserver serves the media upload and read APIs over an isolated MinIO/RGW namespace for the browser SDK's integration tests (sdk/upload/test) and e2e specs. It reads the CONTENTKIT_TEST_S3_* variables, presigns for -public (a proxy the test controls), prints "READY <url> <namespace>" and runs until stdin closes. CONTENTKIT_TEST_S3_BUCKET selects an existing bucket; cleanup removes only the test namespace.

/upload/...            the upload API; X-Test-Actor names the caller ("reader" may not upload)
/upload-on-upload/...  the same with ProcessOnUpload
/read/...              the read API; "reader" reads as a viewer, everyone else as an editor
GET /object?kind&id&path|public   {"size","sha256"} of a stored file: an
                       item's file by path (or stem), or a public name

It has no libvips or ffmpeg: a stand-in worker (standIn) processes items.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL