Main API Page
Heroku API - File Metadata Microservice
Repl
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 toupfile
. - When you submit a file, you receive the file
name
,type
, andsize
in bytes within the JSON response.1
- Optimize code and remove testing console logs, deprecate file but keep copy for reference later
- Document operations of code
Footnotes
-
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 ↩