Reference

Uploads

Client-direct file uploads: the browser streams straight to the app's store, and the bytes never touch a backend method.
import { platform } from '@mindstudio-ai/interface';

The client side of the app's file stores: an upload that goes straight from the browser to storage, without the bytes passing through a backend method. A backend method mints a scoped upload token, then platform.upload streams the file to the store against it, reports progress, honors an abort signal, and returns the stored key and its on-domain URL to save or render. The store itself (its access, scanning, and CDN delivery) is defined on the backend, in the Files & CDN section.

2 entries