Complete a file upload
file.complete(strid, FileCompleteParams**kwargs) -> FileCompleteResponse
POST/v1/files/{id}/complete
Finalizes an upload after the file bytes have been uploaded.
If an optional md5 hex digest is provided, the server validates the checksum before marking the file as completed.
Required scope: files:create
Rate limit category: Write
Complete a file upload
from lightfield import Lightfield
client = Lightfield(
api_key="My API Key",
)
file_complete_response = client.file.complete(
id="id",
)
print(file_complete_response.id){
"id": "id",
"completedAt": "completedAt",
"createdAt": "createdAt",
"expiresAt": "expiresAt",
"filename": "filename",
"mimeType": "mimeType",
"sizeBytes": -9007199254740991,
"status": "PENDING"
}Returns Examples
{
"id": "id",
"completedAt": "completedAt",
"createdAt": "createdAt",
"expiresAt": "expiresAt",
"filename": "filename",
"mimeType": "mimeType",
"sizeBytes": -9007199254740991,
"status": "PENDING"
}