-
Notifications
You must be signed in to change notification settings - Fork 149
Open
Description
When I try to send a request, it writes an error 400 bad request, I tried to find the answer in the documentation and the problem is that the file id that we have does not work to receive the link
function getFileUrl(fileId: Id<"_storage">): string{
return `${process.env.NEXT_PUBLIC_CONVEX_URL}/api/storage/${fileId}`
}here is the code in which I call the function
{
file.type === "image" && <Image alt={file.name} width="200" height="100" src={getFileUrl(file.fileId)}/>
}Metadata
Metadata
Assignees
Labels
No labels
