Resumable Upload API

This article demonstrates how to use the response object from the Generate File Resumable Upload Url endpoint to upload a file to a site's Media Manager.

Authorization

This endpoint uses the uploadToken from the response for authorization. No additional authorization is needed.

Syntax

コピー
1

Query Params

名称タイプOptional説明
filenameストリングnoFile name that appears in the Media Manager. Include the file's extension in the name to prevent potential errors.

Implement a Resumable Upload Client using TUS Protocol

In this example we use tus-js-client to implement a resumable upload using the TUS protocol.

リクエスト

コピー
1

Note: Receiving a successful response does not indicate that the upload is complete. To run code when the upload finishes, use the Descriptor File Ready and Descriptor File Failed webhooks. Learn more about knowing when a file is ready.

Response

コピー
1

Status/Error Codes

The response will include an HTTP status code.

役に立ちましたか?
はい
いいえ