Skip to content

vinatechpro/media-hd159

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

media-mmohub | Service upload images typescript, bun

Clone Project:

git clone https://github.com/vinatechpro/media-mmohub.git

To install:

bun install

To run:

bun --hot run index.ts

Change media url:

var mediaURL = 'http://localhost:3366/'

Change size resize storage:

const imageSize = [
    { key: 'sm', value : 640 },
    { key: 'md', value : 768 },
    { key: 'lg', value : 1024 },
    { key: 'xl', value : 1280 }
]

Validate Image: File Validation - ElysiaJS|Bun.

files: t.Files({
            type: ['image'],
            maxItems: 10,
            maxSize: 5 * 1024 * 1024
        })

API upload:

POST localhost:3366/upload

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published