Skip to content

How to Upload a File to Database using Prisma #11795

Answered by borngraced
codeDev911 asked this question in Q&A
Discussion options

You must be logged in to vote

You'll need a cloud storage e.g "google cloud staorage" to store the uploaded files then you'll update the profilePic field with the uploaded file link.
So you're mostly going to be using something like this instead

id Int @id @default(autoincrement())
name String
email String @unique
profilePic String?
}

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by pantharshit00
Comment options

You must be logged in to vote
4 replies
@davidjgonzalez
Comment options

@Shigetorum635
Comment options

@Shigetorum635
Comment options

@Shigetorum635
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #11782 on February 14, 2022 10:10.