Welcome to this incredible API to obtain the data of your files! It´s super simple to use, and it has a front end design also, so you can use it directly from there.
- Upload your file
- Get your file name, size, and type
- The design was updated to be more elegant
It´s really simple, just select a file from your computer/device and hit the upload button, it will automaticaly response with a JSON object with the metadata of your file.
I hope you enjoy it!
I have developed this full stack app using JavaScript, NodeJS, Express and Multer for the Back-End. If you want to clone the repository, make sure to install all these dependencies. It also has a front-end desing implemented, made with HTML and CSS, so you can see it on action.
Here you can find more info about them.
- Express - Fast node.js network app framework
- Multer - A node.js middleware for handling multipart/form-data, which is primarily used for uploading files.
- Node.js - JavaScript runtime environment
This API requires Node.js to run.
Clone the repository and then start the server with:
$ npm start
Please take a look at the dependencies that this API uses (Express and Multer).
- 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.
You can see the freecodecamp test Here
MIT