API Documentation

Integrate our lossless upload engine programmatically.

← Back Home

You can also retrieve this documentation in JSON format at /api/help.

POST /api/upload

Upload a single file via Base64 string.

Headers

Content-Type: application/json

Body Parameters

{
  "filename": "image.png",
  "content": "SGVsbG8gV29ybGQ=" // Base64 content
}

Example Request

curl -X POST https://dr-fast-upload.pages.dev/api/upload \
  -H "Content-Type: application/json" \
  -d '{"filename": "test.txt", "content": "SGVsbG8gV29ybGQ="}'

Responses

200 OK: {"success": true, "url": "...", "cached": false}

409 Conflict: File already exists. {"success": true, "url": "...", "cached": true}

413 Payload Too Large: Over 24MB.

415 Unsupported Media Type: Executable files blocked.

POST /api/batch-upload

Upload multiple files efficiently in one request.

Body Parameters

{
  "files": [
    { "filename": "1.png", "content": "..." },
    { "filename": "2.png", "content": "..." }
  ]
}

Example Request

curl -X POST https://dr-fast-upload.pages.dev/api/batch-upload \
  -H "Content-Type: application/json" \
  -d '{"files": [{"filename": "test.txt", "content": "SGVsbG8="}]}'

Responses

200 OK: {"success": true, "results": [...]}

Developer Tools

Integrate our services easily using our official developer tools located in the dev-tools/ directory of our repository.

Python dr-fast-upload.py

A command-line interface for uploading files directly from your terminal.

Usage

python dr-fast-upload.py myfile.jpg
python dr-fast-upload.py "C:\Users\Bob\Documents\image.png"
JavaScript iframe.js

An embeddable Drag & Drop upload widget for websites and web applications.

Direct Embed

<!-- Add to your HTML -->
<div id="dr-upload-widget"></div>
<script src="path/to/iframe.js"></script>