This free file storage API is built to help developers work with remote data & quick, yet reliable file hosting service to integrate them with your existing workflows.
Developers can upload files (one file at a time) by sending POST request.
-
Requirements
npm i axios
File object inside FormData()
const file = e.target.files[0]; const formData = new FormData(); formData.append('file', file); axios.post('https://easyfidb.herokuapp.com/upload', formData) .then(res => { console.log(res) })
{ "fileUrl": "http://easyfidb.herokuapp.com/uploads/9a0c020a-6b2f-4460-8dde-d42e8a5e1597.png", "fileName": "diamond_logo.png", "fileType": "image/png", "fileSize": "28.74kb" "fileId": "62384960ef213ca454da612b" }
-
Requirements
npm i axios
fileId
we got it fromFile upload
response
const fileId = "62384960ef213ca454da612b"; axios.post('http://easyfidb.herokuapp.com/delete', JSON.stringify({id: fileId})) .then(res => { console.log(res) })
{ "message": "file deleted successfully" }
- No API key is required to upload a file.
- Uploads are completely free as of now.
- Cross platform
- Developers can use it to save clients avatar.
- Save a temporary file to be used later in the session.
- We would like to hear more from you.