FileService
Confirm File Upload
Verifies the bytes reached storage and marks the upload UPLOADED, after which CreateDocument accepts its id. Confirming an already uploaded file is a no-op.
Required scope: documents:write
Error Codes:
- DEVELOPER.SCOPE_INSUFFICIENT: The key lacks the documents:write scope.
- FILE_NOT_FOUND: No upload with that id belongs to the key owner.
- FILE.NOT_UPLOADED: The presigned form was never submitted.
- FILE.SIZE_MISMATCH: The stored object is larger than the reserved size.
- FILE.INFECTED: The antivirus found malware in the file.
- FILE.UNSCANNABLE: The file is encrypted or exceeds the antivirus limits.
- FILE.INVALID_FORMAT: The content is not a PDF.
- FILE.SCAN_UNAVAILABLE: The antivirus gave no verdict; retry the confirm.