File Metadata Microservice

Upload a file to view its metadata information

About This Service

This service allows you to upload files and retrieve their metadata including name, type, and size. It's a solution for the FreeCodeCamp Back End Development and APIs certification project.

Upload a File

Drag & drop your file here or click to browse

Selected File

Name: - Type: - Size: -
// Metadata will appear here after upload... // Example response: // { // "name": "example.txt", // "type": "text/plain", // "size": 1234 // }

API Usage

Use this endpoint to get file metadata:

Upload Endpoint

POST /api/fileanalyse

Upload a file using multipart/form-data with the field name "upfile" to get its metadata.

Example Response

{ "name": "example.txt", "type": "text/plain", "size": 1234 }

How to Use

Usage

You can use curl, JavaScript fetch, or a form submission to upload a file and receive its metadata in JSON format.