Hi! Does Prisma support file uploads or storage?
# orm-help
s
Hi! Does Prisma support file uploads or storage?
h
m
We definitely need a better example.
h
What is wrong with that example? I am using it in production 🙂
😯 1
s
Is AWS S3 the only option?
m
You can use whatever service you would like. You just need to be able to connect it up so that you can store/retrieve relevant meta data
l
They use S3 to show object storage. I'm using Digital Ocean Spaces (object storage), but you could use a regular file system as well
m
If you do go the AWS route (which is what I use), I would suggest generating a signed 'putObject' URL and responding to the client with that (rather than having to process the file upload yourself -- and block a thread)
Then your client can post to that URL
👍 1