Quick Start
quickstart.py
How It Works
File Storage has two buckets:Uploading Files
Upload files from your local machine to make them available in sessions:uploading_files.py
Downloading Files
Download files that agents retrieved from websites:downloading_files.py
Force Overwrite
Overwrite existing local files:force_overwrite.py
Using with Agents
Agents can interact with files on websites when storage is attached:using_with_agents.py
Using with Sessions
Use file storage with scripted automation:using_with_sessions.py
API Reference
FileStorage Methods
Parameters
upload()file_path- Path to the local file to uploadupload_file_name- Optional custom name for the uploaded file
file_name- Name of the file in storagelocal_dir- Local directory to save the fileforce- Overwrite existing file (default: False)
Supported File Types
File storage supports all common file types:- Documents: PDF, DOCX, XLSX, TXT, CSV
- Images: PNG, JPG, JPEG, GIF, WEBP
- Archives: ZIP, RAR, TAR, GZ
- Media: MP4, MP3
- Data: JSON, XML
Best Practices
1. Attach Storage Before Starting
Always create and attach storage before starting the session:attach_before_starting.py
2. Use Descriptive Filenames
descriptive_filenames.py
3. Check Downloads After Session
Always check for downloaded files after the session ends:check_downloads.py
Next Steps
Agents
Use agents with file operations
Sessions
Learn about browser sessions
Vaults
Store credentials securely
Personas
Create browser identities

