This commit is contained in:
Anaïs Saraiva
2026-08-15 00:40:20 +02:00
parent d8b9fbe993
commit 12854202ca
4 changed files with 101 additions and 16 deletions
+1 -2
View File
@@ -4,7 +4,6 @@ import { getBoundary, MultipartError, multipartParts, type MultipartPart } from
import {
hashPassword,
hashSecret,
newDownloadKey,
newFileId,
sanitizeMime,
sanitizeOriginalName,
@@ -32,7 +31,7 @@ export async function handleUpload(
if (!boundary || !req.body) return jsonError(400, "expected a multipart/form-data upload");
const id = newFileId();
const key = id + newDownloadKey();
const key = id;
try {
let filename = "";