Skip to content
scroll to zoom · drag to pan

cancelResumableSession

function cancelResumableSession(sessionId): Promise<void>;

Defined in: packages/asset-uploader-expo/src/index.ts:55

Cancel a pending upload: drops in-flight native transfers and its record. Idempotent. The server session (if any) is reaped by the 24 h cleanup; to abort it at once, resume it with UploadTask.fromRecord(…) and abort().

Parameter Type
sessionId string

Promise<void>