Open selvavignesh19 opened 3 weeks ago
I also have this issue, but I cannot solve it with this huge internet. Any solution will be appreciated thanks!
i found the solution change the file url to : https://utfs.io/f/${file.key}
like this :
pdfUploader: f({ pdf: { maxFileSize: "4MB" } }) .middleware(async ({ req }) => { const { getUser } = getKindeServerSession(); const user = await getUser(); if (!user || !user.id) throw new Error("Unauthorized"); return { userId: user.id }; }) .onUploadComplete(async ({ metadata, file }) => { const createdFile = await db.file.create({ data: { key: file.key, name: file.name, userId: metadata.userId, url:
https://utfs.io/f/${file.key}, uploadStatus: "PROCESSING", }, }); }),
Pdf still not loading but when I open url from prisma studio File's url attribute , it opens
Pdf still not loading but when I open url from prisma studio File's url attribute , it opens
Can you explain more or check if there's any error
Pdf still not loading but when I open url from prisma studio File's url attribute , it opens
Can you explain more or check if there's any error
Pdf still not loading but when I open url from prisma studio File's url attribute , it opens
Can you explain more or check if there's any error
Pdf still not loading but when I open url from prisma studio File's url attribute , it opens
Can you explain more or check if there's any error
Failed to load PDF file. I just uploaded one pdf with single page , it shown like this?