Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 1.36 KB

05-file-metadata.md

File metadata and controls

23 lines (16 loc) · 1.36 KB

freeCodeCamp Request Header Parser API

Main API Page
Heroku API - File Metadata Microservice
Repl

File Metadata Microservice Conditions

Instructions For Project
Example Project

HINT: You can use the multer npm package to handle file uploading.

  • You should provide your own project, not the example URL.
  • You can submit a form that includes a file upload.
  • The form file input field has the name attribute set to upfile.
  • When you submit a file, you receive the file name, type, and size in bytes within the JSON response.1

Customization & Cleanup

  • Optimize code and remove testing console logs, deprecate file but keep copy for reference later
  • Document operations of code

Footnotes

  1. With Heroku, will only pass conditions 1&2 at the same time, or just 3 by itself, but never all three at the same time. Pushed to Repl and all conditions work properly. Could be a routing conflict causing the errors with Heroku? 06/06/2022