New here, but was just wondering what is the best ...
# random
l
New here, but was just wondering what is the best way to handle file uploads with prisma?
d
What a coincidence. I recently needed this as well and decided to go with an S3 bucket linked up to a cloudfront CDN and just store the CDN url as a string 🙂
v
@Laurie Lohman yes, you could do that. I would also suggest to add a hash to the filename so that you avoid collisions. Store the other details returned by the s3 upload such as the mimetype, those can be helpful later on