Skip to content

MeewPunk/ElysiaJS-Image-Upload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elysia Image Upload API

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.

Elysia with Bun runtime

Getting Started

Clone the Repository:

git clone https://github.com/MeewPunk/ElysiaJS-Image-Upload.git

Navigate to the Project Directory:

cd ElysiaJS-Image-Upload:

cd ElysiaJS-Image-Upload

Install Dependencies:

Install Package:

yarn install

Run the Application:

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)

About

ElysiaJS Upload Image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published