/tmp/files

Temporary File Hosting

API Docs

Endpoint

POST http://tmpfiles.org/api/v1/upload

Parameters

Parameter Required Description
file Yes File to upload, max 100 MB
expire No Seconds until deletion (60–86400), default 3600

Response

{
 "status": "success",
 "data": {
  "url": "https://tmpfiles.org/{id}/{name}"
 }
}

Example

curl -F "file=@/path/to/test.jpg" \
     http://tmpfiles.org/api/v1/upload

Example with expire

curl -F "file=@/path/to/test.jpg" \
     -F "expire=21600" \
     http://tmpfiles.org/api/v1/upload