SimpleAPIs is a file storage service that will allow you to store and retrieve any file.
You upload a file
We return a token
You use that token to retrieve or delete the file
Easy Peasy.
Use this endpoint to upload a file.
The file needs to be uploaded using a multipart request.
This endpoint responds with 201 Created once your file has been successfully uploaded.
fetch('https://simple-file-storage.p.rapidapi.com/files', {
method: 'POST',
body: file,
headers: {
'Content-Type' : 'multipart/form-data',
'Authorization' : `Bearer ${API_KEY}`
}
})
Retrieves a single File referenced by its unique ID.
fetch(`https://simple-file-storage.p.rapidapi.com/files/${file_id}`, {
method: 'GET',
headers: {
'Authorization' : `Bearer ${API_KEY}`
}
})
Deletes a single File referenced by its unique ID.
fetch(`https://simple-file-storage.p.rapidapi.com/files/${file_id}`, {
method: 'DELETE',
headers: {
'Authorization' : `Bearer ${API_KEY}`
}
})