UploadResult
type UploadResult = { assetId?: string; deduped: boolean; sha256: string; visibility?: "public" | "private";};Defined in: packages/asset-uploader-expo/src/types.ts:44
Properties
Section titled “Properties”assetId?
Section titled “assetId?”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
Section titled “deduped”deduped: boolean;Defined in: packages/asset-uploader-expo/src/types.ts:46
sha256
Section titled “sha256”sha256: string;Defined in: packages/asset-uploader-expo/src/types.ts:45
visibility?
Section titled “visibility?”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.