Handle file uploads to different storage services like Amazon S3, Google Cloud or etc. It also supports different type of ORM adapters, like Prisma.
MIT License
Drop support for node older than 18
npm i @uplo/analyzer
const uploAnalyzer = UploAnalyzer({
analyzers: [ImageAnalyzer()]
})
uploAnalyzer.analyze({ blob })
import { blobBufferInput } from '@uplo/node'
await uplo.attachments.link(link.id).html.attachFile(
await blobBufferInput({
fileName: 'index.html',
contentType: 'text/html',
content: Buffer.from(content.html, 'utf-8'),
})
)
Published by jpalumickas almost 2 years ago