File Management
Upload, edit, and manage files for your deployments.
Enabling File Uploads
Add storage with source: uploads in SDL:
services:
web:
image: nginx:alpine
params:
storage:
html:
mount: /usr/share/nginx/html
source: uploads # Enables upload
File Operations
Upload
Click "Upload Files", select from computer. Files sync to container instantly.
Create
Click "New File", enter path (can include folders: src/index.js).
Edit
Click file, Monaco editor opens, auto-saves after 3 seconds idle.
Rename
Click edit icon, enter new path, confirms before overwriting.
Delete
Click trash icon, confirms deletion.
Auto-Apply Changes
Changes apply automatically:
- Stop typing → auto-saves after 3 seconds
- After save → auto-restarts container in 5 seconds
- Changes go live within 10 seconds total
- No manual clicking needed!
Limits
| Limit | Value | |-------|-------| | Max file size | 10MB per file | | Max total size | 100MB per deployment | | Allowed extensions | html, css, js, json, png, jpg, svg, woff2, txt, md, and more | | Forbidden | Executables (.exe, .sh), archives (.zip, .tar) |
For large static sites, consider using a build step in your container rather than uploading many individual files.