pickle rick

This commit is contained in:
2026-08-07 22:38:51 +02:00
parent 9d2b0137da
commit 162f1b40d0
2 changed files with 2 additions and 1 deletions

View File

@@ -78,6 +78,7 @@ export async function handleKoepfeUpload(req, res) {
throw new Error('Unsupported format');
}
await fs.mkdir(cfg.paths.koepfe, { recursive: true });
const newName = crypto.randomBytes(8).toString('hex') + ext;
const targetPath = path.join(cfg.paths.koepfe, newName);