Easiest
curl
curl -F "file=@./report.pdf" \ -F "expiresInHours=1" \ https://upload.mailodatacenter.com/api/upload
Terminal Uploads
Pick one example, swap in your file path, and run it.
Command Builder
Switch between the two upload functions, choose your tool, and copy a ready-to-run command for your SSH session.
Generated Command
The output always points at https://upload.mailodatacenter.com/api/upload and changes instantly as you switch upload modes.
curl -F "file=@./file.txt" \ -F "expiresInHours=1" \ 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.
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"
Quick Commands
`curl` multipart is the easiest. Use the others only if you need them.
Easiest
curl -F "file=@./report.pdf" \ -F "expiresInHours=1" \ https://upload.mailodatacenter.com/api/upload
Custom Headers
curl --data-binary "@./image.png" \ -H "Content-Type: image/png" \ -H "x-filename: image.png" \ -H "x-expires-in-hours: 1" \ https://upload.mailodatacenter.com/api/upload
Wget
wget --method=POST \ --header="Content-Type: image/png" \ --header="x-filename: image.png" \ --header="x-expires-in-hours: 1" \ --body-file="./image.png" \ -qO- \ https://upload.mailodatacenter.com/api/upload
Response
A successful upload returns JSON with the file id and live URL.
{"id":"b5b7d2f8-0c5e-4a1a-9d7c-122aa4e80c4d","url":"https://upload.mailodatacenter.com/file/b5b7d2f8-0c5e-4a1a-9d7c-122aa4e80c4d"}