Documentation / zerotal / http / StorageDisk
Type Alias: StorageDisk
StorageDisk =
Pick<StorageDriver,"url"> &object
Defined in: packages/core/src/http/UploadedFile.ts:12
The part of a storage disk UploadedFile.store() needs: somewhere to put
bytes, and a URL for what was put.
Narrower than StorageDriver on purpose — store() has no business
with delete or temporaryUrl — but it is now a view of the real contract
rather than a look-alike, so the two cannot drift.
Type Declaration
put()
put(
path,content,options?):Promise<void>
Parameters
path
string
content
Uint8Array
options?
contentType?
string
Returns
Promise<void>