Skip to main content
zerotal

Documentation


Documentation / zerotal / testing / TestFileInput

Interface: TestFileInput

Defined in: packages/testing/src/TestApp.ts:32

A file to attach to a multipart request.

Properties

content

content: string | Blob | Uint8Array<ArrayBufferLike> | File

Defined in: packages/testing/src/TestApp.ts:34

File contents. A string is encoded as UTF-8.


filename?

optional filename?: string

Defined in: packages/testing/src/TestApp.ts:36

Filename sent in the part's Content-Disposition. Defaults to file.


type?

optional type?: string

Defined in: packages/testing/src/TestApp.ts:38

MIME type sent for the part. Defaults to application/octet-stream.