This repository contains a simple Node.js application utilizing the Elysia library for handling HTTP requests. The application provides an endpoint for uploading images in base64 format. The uploaded images are saved in a designated "uploads" folder with unique filenames.
Clone the Repository:
git clone https://github.com/MeewPunk/ElysiaJS-Image-Upload.git
cd ElysiaJS-Image-Upload:
cd ElysiaJS-Image-Upload
Install Package:
yarn install
Run the Application:
bun run dev
Example Python HTTP Request HTTP Request py import requests url = "http://localhost:8080/v1/upload/image" payload = {"imageBase64" : "/9j/4AAQSkZJRgABAQAAAQABAADlCNiU7kShsTkCYUEXIoR8gppEwjYhLIrEZ5MSmcmKG"} headers = { 'Content-Type': 'text/plain' } response = requests.request("POST", url, headers=headers, data=payload) print(response.text)