mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-03 08:36:01 +00:00
improve media mime type inferring + added uploadToEntity in media api
This commit is contained in:
@@ -17,5 +17,6 @@ export function getRandomizedFilename(file: File | string, length = 16): string
|
||||
throw new Error("Invalid file name");
|
||||
}
|
||||
|
||||
// @todo: use uuid instead?
|
||||
return [randomString(length), getExtension(filename)].filter(Boolean).join(".");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user