Skip to content

AgomohC/file-metadata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

File Metadata

femto-metadata is a simple full stack app that accepts images, uploads to cloudinary and returns its metadata. This project idea was gotten from freeCodeCamp.

Resources

Upload a file

A post request is made to https://femto-metadata.glitch.me/api/fileanalyse with the upload file in the file property of the request object. If the file is absent a 400 error is returned. If the file is present a 200 status code is returned with a json object containing the file name, type, size and cloudinary url is returned.

Sample return
  • If the file was present and upload was successful
{
  "name": "image name",
  "type": "image size",
  "size": "image size in bytes",
  "img": "secure cloudinary link"
}
  • if the image is absent
{
  "msg": "file not found"
}

Feedback!!

I'd love your feedback on the API. You can reach me via email or give me a shout out on twitter

About

A simple full stack app that accepts images, uploads to cloudinary and returns its metadata

Topics

Resources

Stars

Watchers

Forks