API Upload
1. Select server
curl https://dropfile.to/getuploadserver
Get response (plain text)
https://d1.dropfile.to

2. Upload file
curl -F "file=@screenshot.jpg" https://d1.dropfile.to/upload

(optional) ?X-Progress-ID=Your_random_generated_id
Get response (JSON)
{"status":0,"url":"https:\/\/dropfile.to\/as2Wk","access_key":"Qvp2Vu0"}
Status flags
0 - Success
1 - File reached maximum file size
2 - Unknown error

3. Track upload (optional)
https://d1.dropfile.to/progress?X-Progress-ID=Your_random_generated_id
Get response (JSON)
{"state":"uploading","received":9143245,"size":413208213}
State flags
starting - Request has not been registered yet
done - Upload request has ended
error - Upload request generated HTTP error
- error_code
uploading - Upload request is in progress
- received - Already transferred bytes
- size - Total file size
API Request
Send request
curl https://dropfile.to/api/as2Wk
Get response (JSON)
{"status":0,"file_name":"screenshot.jpg","file_size":"438","date_uploaded":
"2014-06-26 11:22:43","date_expiry":"2014-06-27 11:22:43","scan_result":"0"}
Status flags
0 - Success
1 - File does not exist
Scan result
0 - No virus
1 - Virus found
API Delete
Send request
curl https://dropfile.to/api/as2Wk?delete=<access_key>
Get response (JSON)
{"delete":0}
Delete flags
0 - Success
1 - Incorrect access key
2 - File does not exist