Skip to main content
Call this API to get file upload information.

API call description

Description

  • If the spaceId parameter is provided when uploading a file, use the Get file upload information API.
  • If the dentryUuid or uuid parameter is provided when uploading a file, this document is recommended.
The API call flow is as follows: Step 1: Call this API to obtain the resourceUrls and headers parameter values required for file upload. Step 2: Upload the file using the OSS header signature method. Refer to the following examples: Java
Python
C#
PHP
Node.js
Step 3: Call the Submit file API to complete the file upload.

Description

  • When the storage space type is USER, users with permission to the space have action permissions. Other employees must call the Add permissions API for authorization.
  • When the storage space type is APP, anyone performing actions must call the Add permissions API for authorization.

Request

Basic information

Request header

Path parameter

Query parameter

Request body

Request example

HTTP
Java
Python
PHP
Go
Node.js
C#

Response

Response body

Response body example

Error codes

If an error occurs when calling this API, look up the error message in the Global error codes document for a solution.