N
Neon2y ago
like-gold

Saving files to db

Hi team, I am currently making a resume builder application and was wondering for the templates to my site can I store them on my neon database?
4 Replies
like-gold
like-goldOP2y ago
I went with a s3 bucket do I need to connect it with the db or can I leave it seperate
mute-gold
mute-gold2y ago
Hey @knwar, https://neon.tech/guides/next-upload-aws-s3 we have a guide to help you through the process of saving objects on S3 and then referencing them in your Neon database.
Neon
How to upload to S3 in Next.js and save references in Postgres - Ne...
Let users upload files directly to S3 by creating presigned URLs in Next.js and saving the references in a Postgres database.
mute-gold
mute-gold2y ago
Yes, it's recommended to store the objects (files) in a bucket like system like S3 & then reference them in Neon.
like-gold
like-goldOP2y ago
@Rishi Raj Jain How do I fetch the images and files out of the bucket? nvm I figured it out

Did you find this page helpful?