A REST API project for uploading files and retrieving their metadata, built with Node.js, Express, and Multer.
- Upload files via a form
- Receive file metadata: name, type, and size in bytes (JSON response)
POST /api/fileanalyse
Form field:
upfile(file input, required)
Response:
{
"name": "filename.ext",
"type": "file/type",
"size": 12345
}Clone the repo:
git clone https://github.com/sabbas-ctrl/File-Metadata-Microservice
cd File-Metadata-MicroserviceInstall dependencies:
npm installStart the server:
npm run devThe app runs on http://localhost:3000.
index.js– Main server filepublic/– Static assets (CSS)views/– HTML frontend