UploadRouteResult
UploadRouteResult =
object
Defined in: packages/storage/src/route-handlers.ts:66
Shape of the JSON body returned by a successful POST upload.
key— the R2 object key the file was stored under.size— the verified byte count.type— the MIME type recorded on the R2 object.url— a relative URL pointing at this storage instance’s/uploads/*proxy route, so clients can display or link to the uploaded file without knowing the base path.
Properties
Section titled “Properties”key:
string
Defined in: packages/storage/src/route-handlers.ts:67
size:
number
Defined in: packages/storage/src/route-handlers.ts:68
type:
string
Defined in: packages/storage/src/route-handlers.ts:69
url:
string
Defined in: packages/storage/src/route-handlers.ts:70