Upload a file encoded as a Base64 data URL. The MIME type is automatically detected from the data URL prefix.
Authorization token obtained from api.sinancode.com
Base64 data URL in format: data:{mime-type};base64,{base64-data}
"data:image/png;base64,iVBORw0KGgo..."
File uploaded successfully
Public URL to access the uploaded file (global)
"https://upload-tmp.sinancode.com/uploads/user123/abc123def456.png"
Public URL to access the uploaded file (China)
"https://beijing-user-upload-tmp.tos-cn-beijing.volces.com/uploads/user123/abc123def456.png"
Storage key of the uploaded file
"uploads/user123/abc123def456.png"
Hash of the file content (SHA-256 truncated)
"d41d8cd98f00b204e9800998ecf8427e"
File size in bytes
12345
MIME type of the file
"image/png"
Expiration time of the file (ISO 8601)
"2024-01-17T00:00:00.000Z"