Loading File Drop
File DropLoading

Terminal Uploads

Upload from SSH in one command.

Pick one example, swap in your file path, and run it.

Command Builder

Complete the captcha, create a 30-minute upload token, then copy a ready-to-run command for your SSH session.

Save file for

Generated Command

The output always points at https://upload.mailodatacenter.com/api/upload and changes instantly as you switch upload modes.

curl
curl -F "file=@./file.txt" \
  -F "expiresInHours=1" \
  -H "x-upload-session: create-a-token-first" \
  https://upload.mailodatacenter.com/api/upload

Interactive Picker

Want a simple tree-style chooser instead of typing paths by hand? Download the helper script, run it, then click through folders and files in your terminal.

bash
curl -fsSL "https://upload.mailodatacenter.com/upload-picker.sh" -o upload-picker.sh && chmod +x upload-picker.sh && ./upload-picker.sh "https://upload.mailodatacenter.com" "UPLOAD_SESSION_TOKEN"

Quick Commands

`curl` multipart is the easiest. Use the others only if you need them.

Easiest

curl
curl -F "file=@./report.pdf" \
  -F "expiresInHours=1" \
  -H "x-upload-session: UPLOAD_SESSION_TOKEN" \
  https://upload.mailodatacenter.com/api/upload

Custom Headers

curl
curl --data-binary "@./image.png" \
  -H "Content-Type: image/png" \
  -H "x-filename: image.png" \
  -H "x-expires-in-hours: 1" \
  -H "x-upload-session: UPLOAD_SESSION_TOKEN" \
  https://upload.mailodatacenter.com/api/upload

Wget

wget
wget --method=POST \
  --header="Content-Type: image/png" \
  --header="x-filename: image.png" \
  --header="x-expires-in-hours: 1" \
  --header="x-upload-session: UPLOAD_SESSION_TOKEN" \
  --body-file="./image.png" \
  -qO- \
  https://upload.mailodatacenter.com/api/upload

Response

A successful upload returns JSON with the file id and live URL.

json
{"id":"b5b7d2f8-0c5e-4a1a-9d7c-122aa4e80c4d","url":"https://upload.mailodatacenter.com/file/b5b7d2f8-0c5e-4a1a-9d7c-122aa4e80c4d"}