Data Types

GetUploadPart

Gets a remaining upload part for a multipart file upload.

GET /v2/accounts/{accountId}/uploads/{uploadId}/parts/{uploadPartIndex}
cURL
1curl "https://api.upload.io/v2/accounts/{accountId}/uploads/{uploadId}/parts/{uploadPartIndex}" \
2 -H "Authorization: Bearer YOUR_API_KEY"
Response (200)
1{
2 "range": {
3 "inclusiveEnd": 5242879,
4 "inclusiveStart": 0
5 },
6 "uploadId": "Kd759aLFxttm69kZ",
7 "uploadPartIndex": 7,
8 "uploadUrl": "https://...long-url...x-id=PutObject"
9}

Response Body

URL Parameters

accountId

Your account ID.

This is visible on the settings page:

https://upload.io/dashboard/settings

Example: A623uY2

Type: String

Length: 7

In: Path

Required: Yes

uploadId

The ID for the multipart file upload.

Example: Kd759aLFxttm69kZ

Type: String

Length: 16

In: Path

Required: Yes

uploadPartIndex

Index of an uploadable file part.

Can be used as the uploadPartIndex parameter in the GetUploadPart and CompleteUploadPart operations.

Example: 7

Type: Integer

Minimum: 0

In: Path

Required: Yes

Request Headers

Authorization

Add one of these Authorization header values to your request:

Option 1: prefix "Bearer " to your API key. The result is your Authorization header value.

Option 2: use HTTP basic authorization, specifying apikey as your username, and your API key as your password.

Type: String

In: Header

Required: Yes

Was this section helpful? Yes No

You are using an outdated browser.

This website requires a modern web browser -- the latest versions of these browsers are supported: