pickle rick
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user