Hello :3
This commit is contained in:
@@ -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 = "";
|
||||
|
||||
Reference in New Issue
Block a user