check_upload
Check an upload's status to confirm it finished before reporting success. Returns pending, uploading, completed (with path, sha256, MIME), or expired.
Instructions
Ask what happened to an upload link you minted with request_upload.
Returns one of pending (nothing sent yet), uploading (bytes are in
flight), completed (with the path, size, sha256 and MIME type of what
landed), or expired. Use it to confirm a transfer really finished before
you tell the user it did, and to get the sha256 if they want to verify it.
Only links minted by this same API key or OAuth token are visible; anyone
else's upload_id reads as not found.
If it says uploading for more than a couple of minutes, the transfer died
mid-flight. That link will never complete — mint a new one with
request_upload.
Pass the upload_id itself — the short handle from request_upload, not
the upload URL and not the token after the #. Anything else is refused
without a lookup.
Args:
upload_id: The upload_id that request_upload returned.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| upload_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |