Ultimate

X_STORAGE_UPLOAD_SIZE_UNDECLARED

Means

an upload grant was asked for without the size of the file

Typical cause

an upload grant was minted, or an s3 PUT signed with a ceiling, naming no whole byte count of at least 1: a presigned PUT binds a size only by signing the exact Content-Length, so there was nothing to bind

Fix

grantUpload({ disk, orgId, request: { filename, contentType, size: file.size } })

Listed under Storage

This page as markdown