Appearance
Link Upload Process API
API Information
- Request Path:
/datafile/link/upload/process - Request Method:
GET - Content-Type:
application/json
Request Headers
| Parameter | Type | Required | Description |
|---|---|---|---|
| Authorization | String | Yes | User authentication token |
Request Parameters
| Parameter | Type | Required | Description | Constraints |
|---|---|---|---|---|
| fileId | String | Yes | File ID | Must be a valid upload file ID |
Parameter Example
/datafile/link/upload/process?fileId=upload_12345Response Body
| Field | Type | Description |
|---|---|---|
| code | Integer | Response status code |
| message | String | Response message |
| data | Map<String, String> | Upload progress information |
Response Examples
Success Response
json
{
"code": 200,
"message": "success",
"data": {
"uploadedStatus": "uploadSucceed",
"uploadedBytes": "750000",
"dataFileId": "135",
"failedMsg": ""
}
}Failure Response
json
{
"code": 404,
"message": "Upload not found",
"data": null
}Error Code Description
| Error Code | Description |
|---|---|
| 200 | Success |
| 400 | Request parameter error |
| 401 | Unauthorized |
| 404 | Upload not found |
| 500 | Server internal error |
Usage Instructions
- This API is used to get upload progress for link-based file uploads
- User authentication is required
- File ID must be provided as query parameter
- Returns current upload status and progress information
Notes
- File ID is required and must be a valid upload ID
- Frontend can poll this API to show upload progress
- Returns detailed progress information including status and estimated time
- User authentication token must be included in request headers