Skip to content
Bilal CAGIRAN edited this page Oct 19, 2016 · 1 revision

File-Metadata

Demo : https://extwiii-file-metadata.herokuapp.com

User stories:

  1. I can submit a FormData object that includes a file upload.
  2. When I submit something, I will receive the file size in bytes within the JSON response

Hint: You may want to use this package: https://www.npmjs.com/package/multer

Example query usage:

https://extwiii-file-metadata.herokuapp.com

Example query output:

https://extwiii-file-metadata.herokuapp.com/metadata
{
"name":"LOGO.jpg",
"size":"40673 KB",
"type":"image/jpeg"
}

Difficulty πŸŒ•πŸŒ•πŸŒ•πŸŒ•πŸŒ‘πŸŒ‘πŸŒ‘πŸŒ‘πŸŒ‘πŸŒ‘

Bilal Cagiran | E-Mail | Github | LinkedIn | CodePen | Blog/Site | FreeCodeCamp