@moss-dev/moss / ParseFileInputDocumentation Index
Fetch the complete documentation index at: https://docs.moss.dev/llms.txt
Use this file to discover all available pages before exploring further.
Interface: ParseFileInput
Input descriptor for a single file in the parse pipeline. Used bycreateIndexFromFiles.
Provide at least one of path or data. If both are given, data takes precedence. Only "application/pdf" is currently supported as contentType.
Properties
| Property | Type | Description |
|---|---|---|
name | string | File identifier sent to the server. Required. |
contentType | string | MIME content type (e.g. "application/pdf"). Required. Currently only "application/pdf" is supported. |
path? | string | Filesystem path (Node.js / server-side). Required when data is not provided. |
data? | Uint8Array | ArrayBuffer | Blob | File | Raw file bytes (browser / in-memory). Takes precedence over path when provided. |