🤖 API 🤖
/api/upload anonymous upload
$ curl -X POST -H "Content-Type: multipart/form-data" -F "files[]=@edfile.jpg" https://edfile.pro/api/upload HTTP/1.1 200 OK { "success":true, "files":[{ "name":"edfile.jpg", "mime":"image\/jpeg", "size":2488, "hash":"1f282ffd6e7041b4cfce54cfcaf9e3ecf3a5d94d", "code":"07db833", "url":"https:\/\/edfile.pro\/07db833" }] }
/api/upload authenticated upload
$ curl -X POST -H "Content-Type: multipart/form-data" -F "files[]=@edfile.jpg" -F "userkey=token_##############" https://edfile.pro/api/upload HTTP/1.1 200 OK { "success":true, "files":[{ "name":"edfile.jpg", "mime":"image\/jpeg", "size":2488, "hash":"1f282ffd6e7041b4cfce54cfcaf9e3ecf3a5d94d", "code":"ac770c9", "url":"https:\/\/edfile.pro\/ac770c9" }] }