Upload a file
The installed skill stores the file and immediately prints its permanent Drop URL.
curl -fsS -F file=@/path/file.pdf https://drop.vitehub.dev/api/files | jq -r .url
Limits
- One file per request, up to 4 MiB.
- Target: 5 upload attempts per source address every 60 seconds.
- On
429, wait one minute before retrying.
Errors
| Status | Meaning |
400 | Malformed multipart data, a missing or repeated file, an unexpected field, or a Markdown or HTML file that is not valid UTF-8. |
413 | The file exceeds 4 MiB or the request exceeds 4 MiB plus 64 KiB. |
415 | The request is not multipart data. |
422 | The content type header is malformed. |
429 | The upload rate limit was reached; retry after 60 seconds. |
503 | Rate limiting, storage, or optimization dispatch is unavailable. |