basalt / drives/src / FileUploadTarget
Interface: FileUploadTarget
Defined in: drives/src/import.ts:81
The subset of @basaltkit/files' Files that filesSink needs.
Structural, so this package does not depend on @basaltkit/files. A real Files instance satisfies it, and an app that keeps documents in its own table can satisfy it too. Same reasoning as the 'tenancy:active' marker elsewhere in the framework: a signal, not an import.
Methods
upload()
> upload(content, input): Promise<{ id: string; }>
Defined in: drives/src/import.ts:82
Parameters
content
AsyncIterable<string | Uint8Array<ArrayBufferLike>>
input
contentLength?
number
contentType
string
metadata?
Record<string, unknown> | Record<string, never>
name
string
tenantId?
string
uploadedBy?
string
Returns
Promise<{ id: string; }>