Skip to content
scroll to zoom · drag to pan

UploadResult

type UploadResult = {
assetId?: string;
deduped: boolean;
sha256: string;
visibility?: "public" | "private";
};

Defined in: packages/asset-uploader-expo/src/types.ts:44

optional assetId?: string;

Defined in: packages/asset-uploader-expo/src/types.ts:52

Present for single-part images and dedupes. A multipart upload (and a video) is finalized asynchronously, so it has none yet: resolve it with GET /assets/by-hash/:sha256.


deduped: boolean;

Defined in: packages/asset-uploader-expo/src/types.ts:46


sha256: string;

Defined in: packages/asset-uploader-expo/src/types.ts:45


optional visibility?: "public" | "private";

Defined in: packages/asset-uploader-expo/src/types.ts:54

What was requested — or, on a dedupe, what the existing asset says.