Temporary file storage
$ asdf install
$ bun install
$ bun start$ bun run lint
$ bun run test$ bun run deployEndpoint: https://dropbox.deploys.app/
POST /
dropbox.upload
| Name | Type | Data Type | Description |
|---|---|---|---|
| Authorization | required | string | Authorization token |
| Param-Ttl | optional | number | 1-7, default 1 |
| Param-Project | required | string | Project name |
| Param-Filename | optional | string | Filename in Content-Disposition |
| Name | Type | Data Type | Description |
|---|---|---|---|
| ttl | optional | number | 1-7, default 1 |
| project | required | string | Project name |
| filename | optional | string | Filename in Content-Disposition |
ttl, project, filename can be passed as query parameters or headers
File data binary
{
"ok": true,
"result": {
"downloadUrl": "https://dropbox-files.deploys.app/filename",
"expiresAt": "2020-01-01T01:01:01Z"
}
}{
"ok": false,
"error": {
"message": "api: unauthorized"
}
}# using query parameters
$ http -a user:pass https://dropbox.deploys.app/?ttl=1&project=my-project \
< file
# using headers
$ http -a user:pass https://dropbox.deploys.app/ \
param-ttl:1 \
param-project:my-project \
< fileIn alpha version, you can upload without Authorization, but its rate-limited.
http https://dropbox.deploys.app/ < file