File Metadata Microservice

A microservice that responds with the file name, file type, and file size metadata of any file uploaded to it.

I built this microservice for freeCodeCamp’s fifth and final APIs and Microservices Projects.

Everything went smoothly with this project, and it took me 5h30 to complete from start to finish, of which a good third was me messing around with styling.

User Stories

The brief for the File Metadata Microservice project was as follows:

  1. I can submit a form object that includes a file upload.
  2. The from file input field has the “name” attribute set to “upfile”. We rely on this in testing.
  3. When I submit something, I will receive the file name, and size in bytes within the JSON response.