Skip to content

mococa/transfer-upload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

transfer-upload

Using transfer.sh for unlimited uploads :O

What is it:

This is a rest API with one endpoint (POST /), which will receive a base64, an extension and will return a url hosting the file on transfer.sh

Example of usage (Axios - Javascript):

  const binary = "data:audio/webm;codecs=opus;base64,GkXfo59ChoEBQv...";
  const extension = "webm";
 
  axios.post(THIS_API_URL, { binary, extension }).then(({ data: hostedUrl }) => {
    console.log(`File sucessfully hosted on ${hostedUrl}`)
  })

About

Using transfer.sh for unlimited uploads :O

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published