Skip to main content

File Operations

The files component of the VLM Run client provides methods for uploading and managing files.

Upload a File

Get a File

File Types

The SDK supports various file types including:
  • Images (jpg, jpeg, png)
  • Documents (pdf)
  • Audio files (mp3, wav)
  • Video files (mp4)

TypeScript Interfaces

Error Handling

Best Practices

  1. File Size Limits
    • Check file size before uploading
    • Handle large files appropriately
  2. File Types
    • Verify file types before upload
    • Use appropriate MIME types
  3. Error Handling
    • Implement proper error handling
    • Handle both API and file system errors