https://github.com/hurricanemark/microservice-file-metadata
https://github.com/hurricanemark/microservice-file-metadata
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hurricanemark/microservice-file-metadata
- Owner: hurricanemark
- Created: 2022-05-23T23:13:23.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-05-25T05:17:53.000Z (over 3 years ago)
- Last Synced: 2025-01-27T05:27:15.230Z (8 months ago)
- Language: HTML
- Size: 62.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# File Metadata Microservice
A microservice that takes a local file and uploads it onto the server, storing it in a folder designated in dotenv as process.env.ONLINE_STORAGE
Instructions for building your project can be found at https://www.freecodecamp.org/learn/apis-and-microservices/apis-and-microservices-projects/file-metadata-microservice
## [Run from repl.it](https://boilerplate-project-filemetadata.hurricanemark.repl.co)
## [Git source](https://github.com/hurricanemark/microservice-file-metadata.git)
Optionally, clone from [github](https://github.com/hurricanemark/microservice-file-metadata.git) and run from the terminal (regardless, you must setup and configure your own mongodb database in place of my *process.env.ONLINE_STORAGE where you define server side folder name*)!:
```
npm installnpm start
```

## Application features and constraints
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.