What You Can Upload
The Asset Manager supports various file types:- Images - PNG, JPG, JPEG, GIF, SVG, WebP, ICO, BMP
- Documents - PDF, JSON, CSV, TXT, XML
- Fonts - WOFF, WOFF2, TTF, OTF, EOT
- Media - MP3, MP4, WAV, OGG, WebM
How to Use
Opening the Asset Manager
Open Project Settings → Assets. The page is titled Project Assets and lists every file already uploaded. You can also upload from the chat: click + in the chat input, then Upload asset.Uploading Files
- Click the Upload button
- Select a file from your computer
- The file uploads to your project’s
public/folder - Images go to
public/images/, other files go topublic/
Using Assets in Your Project
After uploading, use the asset path in your code:Managing Assets
Each asset card shows:- Preview - Thumbnail for images (when the project is deployed)
- Filename - The stored file name
- Size - File size
- Path - The public path to use in your code
- Copy path - Copy the asset path to clipboard
- Share with Leo - Put “Use the uploaded image at …” in the chat input, ready to send
- Delete - Remove the asset from your project
Features
Image Preview
When your project is deployed, image thumbnails display directly in the Asset Manager. For private projects, authentication is handled automatically.Git Integration
All uploaded assets are automatically committed to your project’s git repository. This ensures your assets are versioned and synced.Preview Sync
Uploaded assets are pushed to your running preview straight away. They reach your published app the next time you publish.Secure Uploads
- Files are validated for allowed types
- Filenames are sanitized to prevent security issues
- Size limits protect against large uploads
- Executable and code files (JS, TS, HTML, PHP, shell scripts and the like) are blocked
