UploadResult
UploadResult =
object
Defined in: packages/storage/src/types.ts:140
Result returned after a successful file upload to R2.
Contains the R2 object key, the verified byte count, and the MIME type.
Passed to the afterUpload hook and returned from StorageInstance.handle.
Properties
Section titled “Properties”key:
string
Defined in: packages/storage/src/types.ts:142
The R2 object key where the file was stored.
size:
number
Defined in: packages/storage/src/types.ts:144
Actual file size in bytes (verified via streaming byte count).
type:
string
Defined in: packages/storage/src/types.ts:146
MIME type of the uploaded file.