Command Line Interface

BashUpload supports easy text and file uploads directly from your terminal.

# Upload file
curl bashupload.app -T file.txt
# Upload text (saved as .txt)
curl bashupload.app -d "text content"
# Set expiration time (e.g. 3600s = 1 hour)
curl -H "X-Expiration-Seconds: 3600" bashupload.app -T file.txt
# Set a Custom Path
curl -H "X-Custom-Path: my-file" bashupload.app -T file.txt
# Protect with Password
curl -H "X-File-Password: secret" bashupload.app -T file.txt
# Make file Public (no password allowed)
curl -H "X-Is-Public: true" bashupload.app -T file.txt

By default, files without an expiration header can only be downloaded once. Files are automatically deleted upon expiration or successful one-time download.