StorageErrorCode
StorageErrorCode =
"FILE_TOO_LARGE"|"INVALID_MIME_TYPE"|"UPLOAD_FAILED"
Defined in: packages/storage/src/types.ts:8
Machine-readable error codes produced by the storage validation and upload pipeline.
"FILE_TOO_LARGE"— The file exceeds the configuredmaxSize(HTTP 413)."INVALID_MIME_TYPE"— The file’s MIME type is not in theacceptlist (HTTP 415)."UPLOAD_FAILED"— The R2 upload operation failed (HTTP 500).