routier-collection / plugins/blob/src / UploadRequest
Type Alias: UploadRequest
UploadRequest =
object
Defined in: plugins/blob/src/direct.ts:60
What the browser tells the server about content it wants to upload.
Properties
checksum
checksum:
string
Defined in: plugins/blob/src/direct.ts:62
SHA-256 of the content, lowercase hex. Determines the key.
size
size:
number
Defined in: plugins/blob/src/direct.ts:64
Byte length. Check it server-side before signing if you enforce a limit.
contentType
contentType:
string
Defined in: plugins/blob/src/direct.ts:66
Media type. Signed into the URL, so the PUT must send exactly this.
fileName
fileName:
string
Defined in: plugins/blob/src/direct.ts:68
Display name. Metadata only; it is not part of the key.