fixed db calls

This commit is contained in:
ZareMate 2025-04-14 08:24:57 +02:00
parent bcdceb615c
commit ebc18b0f6e
Signed by: zaremate
GPG Key ID: 369A0E45E03A81C3
2 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ export async function POST(req: Request) {
// Save file metadata to the database
const newFile = await db.file.create({
data: {
url: `${pagePath}/share?file=${fileName}`,
url: `${pagePath}/share?id=${fileName}`,
name: fileName,
size: fileBuffer.length,
extension: path.extname(fileName),

Binary file not shown.