prisma / prisma-examples

🚀 Ready-to-run Prisma example projects
https://www.prisma.io/docs/
Apache License 2.0
6.12k stars 1.42k forks source link

graphql-nextjs file upload? #1753

Closed namiomiru closed 1 year ago

namiomiru commented 4 years ago

How to implement file upload in graphql-nextjs(graphql upload)?

WillGeller commented 4 years ago

I'm pretty sure that is outside the scope of Prisma, which handles interfacing with the DB. If you are looking for something plug n play try Google's Firebase Cloud Storage, this might be helpful for implementing with NextJs which is React based: https://github.com/fris-fruitig/react-firebase-file-uploader

namiomiru commented 4 years ago

https://www.npmjs.com/package/graphql-upload can't you upload it this way?

i tried but it doesn't work.

image

image

image

ruheni commented 1 year ago

Hi 👋🏽

Were you able to resolve the issue? I'll go ahead and close it.