File Upload via filebin.net
Upload local files to filebin.net so the user gets a shareable link.
Rules
- Bin ID must be 15–26 characters (shorter → "the bin is too short"; longer → "the bin is too long").
- Filebin bins auto-expire after 7 days.
Steps
- Find the file provided by user Locate the target file in the ~/.openclaw/workspace/.
- Generate bin ID.
import uuid
u = uuid.uuid4().hex # hex string (32 chars)
bin_id = f"my-upload{u[-6:]}"
print(bin_id)
-
Upload via curl (PowerShell):
curl -si -X POST -H "Content-Type: application/octet-stream" -T "<FILEPATH>" "https://filebin.net/$binId/<FILENAME>" -
Extract the URL from the response JSON. Construct:
- File direct link:
https://filebin.net/<binId>/<filename> - Bin page:
https://filebin.net/<binId>
- File direct link:
Notes
- user should not upload a private file because file uploaded will be public.
- If upload returns
400 "the bin is too short/long", adjust bin ID length and retry. - For large files (>100 MB), warn the user that filebin may reject them.