{{define "usage-examples"}}

🔄 Usage

Step 1: Upload a file using POST /upload with form-data 'file' parameter
Step 2: Use the returned 'id' and 'filename' to construct download URL
Step 3: Download the file using GET /uploads/{id}/{filename}

💡 Examples

# 1. Upload a file
curl -X POST -F "file=@myfile.txt" {{.BaseURL}}/upload

# Response will include:
# {
#   "id": "abc123...",
#   "filename": "myfile.txt",
#   "url": "{{.BaseURL}}/uploads/abc123.../myfile.txt"
# }

# 2. Download the file
curl -O {{.BaseURL}}/uploads/abc123.../myfile.txt
{{end}}