get_upload_progress
GET
/api/v1/files/upload/{upload_id}
const url = 'https://example.com/api/v1/files/upload/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}use reqwest;
#[tokio::main]pub async fn main() { let url = "https://example.com/api/v1/files/upload/example";
let mut headers = reqwest::header::HeaderMap::new(); headers.insert("Authorization", "Bearer <token>".parse().unwrap());
let client = reqwest::Client::new(); let response = client.get(url) .headers(headers) .send() .await;
let results = response.unwrap() .json::<serde_json::Value>() .await .unwrap();
dbg!(results);}curl --request GET \ --url https://example.com/api/v1/files/upload/example \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”upload_id
required
string
Upload session ID
Responses
Section titled “Responses”Upload progress
Media typeapplication/json
object
code
required
string
data
object
chunk_size
required
integer format: int64
chunks_on_disk
required
Array<integer>
filename
required
string
provider_resumable
One of:
object
browser_upload
One of:
object
confirmed_offset
required
integer format: int64
executor_version
required
Version of the finite browser executor, independent from driver protocol versions.
integer format: int32
instruction
One of:
object
request
required
A capability URL, never an administrator credential. Do not log this value.
object
authorization
body
completion
headers
required
object
key
additional properties
string
method
required
string
response_headers
required
Only these response headers may be reported to the driver.
Array<string>
url
required
string
request_id
required
string
response_body_limit
required
integer format: int32
timeout_ms
required
integer format: int32
null
progress_revision
required
Increments only when driver state or confirmed progress advances, not for a fresh request ID.
integer format: int64
protocol
required
Opaque driver-owned protocol identity. Versions are interpreted by the driver, not the browser.
object
id
required
string
version
required
integer format: int32
provider_completed
required
boolean
null
expires_at
string | null
null
received_count
required
integer format: int32
status
required
上传 session 状态
string
total_chunks
required
integer format: int32
upload_id
required
string
error
object
diagnostic
object
field
Connector-owned field that caused a configuration validation failure.
This is intentionally optional so existing diagnostics remain wire-compatible.
string | null
kind
required
string
message
required
string
scope
Connector field scope, for example connector_config or static_credential.
string | null
retryable
required
boolean
msg
required
string
Example
{ "code": "success", "data": { "provider_resumable": { "browser_upload": { "instruction": { "request": { "completion": { "source": "response_header" }, "method": "GET" } } } }, "status": "uploading", "upload_scheduling": { "chunk_ordering": "unordered" } }}Unauthorized
Session not found