Pular para o conteúdo

Interface: FpMultipartFilePart

Definido em: fp-api.d.ts:115

A file part. Bytes are read from the workspace-staged file referenced by fileRef at send time — scripts cannot supply or read the bytes.

optional contentType?: string;

Definido em: fp-api.d.ts:134

Optional per-part Content-Type. When unset, the encoder uses the staged file’s MIME type (extension-based) and falls back to application/octet-stream.


optional disabled?: boolean;

Definido em: fp-api.d.ts:136

Disabled parts are skipped on send.


optional filename?: string;

Definido em: fp-api.d.ts:129

Optional wire-filename override. When unset, the encoder uses the sanitized original name embedded in fileRef.


readonly fileRef: string;

Definido em: fp-api.d.ts:124

Opaque reference to a workspace-staged file (<sha256>__<sanitized-name>). Read-only — assignment throws. To swap the file, push a new part and remove the old one.


readonly kind: "file";

Definido em: fp-api.d.ts:116


name: string;

Definido em: fp-api.d.ts:118

Form field name, sent in Content-Disposition: form-data; name="...".