FileProblem
RFC 9457 problem details returned when an uploaded file is rejected. error and message mirror type and detail for existing clients and will be removed in a future version.
typestring
Stable identifier of the rejection
Possible values: [tag:EmptyFile, tag:InvalidFileName, tag:UnsupportedFileType, tag:FileTooLarge, tag:InvalidContentType, tag:InvalidFileSignature, tag:InvalidFileEncoding, tag:InvalidFile]
Example:
tag:UnsupportedFileTypetitlestring
Short summary of the rejection
Example:
Unsupported file typestatusinteger<int32>
HTTP status code
Example:
415detailstring
Explanation specific to this file
Example:
Unsupported file type: malware.exeerrorstringdeprecated
Deprecated, use type
Example:
UNSUPPORTED_FILE_TYPEmessagestringdeprecated
Deprecated, use detail
Example:
Unsupported file type: malware.exefileNamestring | nullnullable
Name of the rejected file, for tag:FileTooLarge
Example:
plan.pdfdocumentTypestring | nullnullable
Detected document type, for tag:FileTooLarge
Example:
PDFfileSizeBytes(integer | null)<int64>nullable
Size of the rejected file in bytes, for tag:FileTooLarge
Example:
734003200maxFileSizeBytes(integer | null)<int64>nullable
Maximum size allowed for this document type in bytes, for tag:FileTooLarge
Example:
524288000FileProblem
{
"type": "tag:UnsupportedFileType",
"title": "Unsupported file type",
"status": 415,
"detail": "Unsupported file type: malware.exe",
"fileName": "plan.pdf",
"documentType": "PDF",
"fileSizeBytes": 734003200,
"maxFileSizeBytes": 524288000
}