toi cam thay minh la sieu nhan

This commit is contained in:
2024-11-15 18:18:37 +07:00
parent ff45e69efd
commit 7e4a4283e6
12 changed files with 499 additions and 12 deletions

View File

@@ -13,7 +13,6 @@ export class MinioService {
) {}
async uploadFile(file: FileUpload, category: string) {
// @ts-nocheck
const { mimetype, createReadStream, filename: actualFileName } = await file
const filename = this.fileName()
const Name = `${category}/${filename}`
@@ -88,6 +87,8 @@ export class MinioService {
)
}
async streamFile(id: string, category: string) {}
fileName() {
// generate a unique file name using uuid
return uuidv4()