> ISPO SDK documentation. [HTML](https://ispo.ai/docs/types/core.FilesPublishArgs.html) · [Documentation index](https://ispo.ai/docs/llms.txt)

# Type Alias FilesPublishArgs

```typescript
FilesPublishArgs:
    | {
        content: string
        | Uint8Array;
        folder?: string;
        mimeType?: string;
        name: string;
    }
    | { folder?: string; mimeType?: string; name?: string; path: string }
```

#### Type Declaration

*   {  
        content: string | Uint8Array;  
        folder?: string;  
        mimeType?: string;  
        name: string;  
    }
    *   ##### content: string | Uint8Array
        
        Bytes (binary) or text to publish directly into Files.
        
    *   ##### `Optional`folder?: string
        
        Files folder to place the published file in. Defaults to root (`/`).
        
    *   ##### `Optional`mimeType?: string
        
        MIME type to record. Defaults from `name` when omitted.
        
    *   ##### name: string
        
        Basename for the Files entry.
        
*   { folder?: string; mimeType?: string; name?: string; path: string }
    *   ##### `Optional`folder?: string
        
        Files folder to place the published file in. Defaults to root (`/`).
        
    *   ##### `Optional`mimeType?: string
        
        MIME type to record. Defaults from `name`/`path` when omitted.
        
    *   ##### `Optional`name?: string
        
        Optional basename override. Defaults to the path basename.
        
    *   ##### path: string
        
        Path in the project's private fs:self sandbox to publish.
        
        #### <a id="deprecated"></a>Deprecated
        
        Migration compatibility only; publish `content` directly.
