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