Integrate our lossless upload engine programmatically.
You can also retrieve this documentation in JSON format at /api/help.
Upload a single file via Base64 string.
Content-Type: application/json
{
"filename": "image.png",
"content": "SGVsbG8gV29ybGQ=" // Base64 content
}
curl -X POST https://dr-fast-upload.pages.dev/api/upload \
-H "Content-Type: application/json" \
-d '{"filename": "test.txt", "content": "SGVsbG8gV29ybGQ="}'
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.
Upload multiple files efficiently in one request.
{
"files": [
{ "filename": "1.png", "content": "..." },
{ "filename": "2.png", "content": "..." }
]
}
curl -X POST https://dr-fast-upload.pages.dev/api/batch-upload \
-H "Content-Type: application/json" \
-d '{"files": [{"filename": "test.txt", "content": "SGVsbG8="}]}'
200 OK: {"success": true, "results": [...]}
Integrate our services easily using our official developer tools located in the dev-tools/ directory of our repository.
A command-line interface for uploading files directly from your terminal.
python dr-fast-upload.py myfile.jpg
python dr-fast-upload.py "C:\Users\Bob\Documents\image.png"
An embeddable Drag & Drop upload widget for websites and web applications.
<!-- Add to your HTML -->
<div id="dr-upload-widget"></div>
<script src="path/to/iframe.js"></script>