Add first half of cloud attachment uploads

This commit is contained in:
Rory&
2025-09-29 18:38:06 +02:00
parent 3720068b83
commit 1e6ed06da1
13 changed files with 381 additions and 116 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ import crypto from "crypto";
// TODO: 'random'? seriously? who named this?
// And why is this even here? Just use cryto.randomBytes?
export function random(length = 6) {
export function randomString(length = 6) {
// Declare all characters
const chars =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";