Skip to main content
zerotal

Documentation


Documentation / @zerotal/admin / index / UploadedFileLike

Interface: UploadedFileLike

Defined in: admin/src/media.ts:199

A file as it arrives from a bound file input.

This is the shape of the temporary upload the framework hands a component once the browser has POSTed the bytes: the file is already on the temp disk, and store() moves it where it belongs.

Properties

originalName

originalName: string

Defined in: admin/src/media.ts:200


mime

mime: string

Defined in: admin/src/media.ts:201


size

size: number

Defined in: admin/src/media.ts:202

Methods

store()

store(directory, disk?, filename?): Promise<string>

Defined in: admin/src/media.ts:203

Parameters

directory

string

disk?

string

filename?

string

Returns

Promise<string>