TRASHBYTES

Simple fast anonymous file sharing for everyone.

Tools to interact with trashbytes.net programmatically

How to upload file with cURL

  1. Upload a file

    curl -#o - -T "sample.mp4" "https://w.trashbytes.net/t/sample.mp4" | cat
  2. Upload a file with expiry

    curl -#o - -T "sample.mp4" "https://w.trashbytes.net/sample.mp4?expiry=600" | cat
  3. Upload a file to folder

    curl -#o - -H "Authorization: Bearer YOUR_API_KEY" \
        -T "sample.mp4" \
        "https://w.trashbytes.net/sample.mp4?folderId={FOLDER_ID}" | cat