Skip to main content

getUploadStatus()

getUploadStatus(fileId: string): Promise<UploadStatusResponse>

Defined in: packages/core/src/index.ts:1722

Get the upload/processing status of a file

Parameters

ParameterTypeDescription
fileIdstringThe unique identifier of the file

Returns

Promise<UploadStatusResponse>

Upload status including processing state

Throws

401 - Not authenticated

Throws

404 - File not found

Example

import { getUploadStatus } from "@cpod/sdk";

const status = await getUploadStatus("file-123");
console.log(`Status: ${status.status}`); // "pending", "processing", "completed"