New here, but was just wondering what is the best way to handle file uploads with prisma?
d
Dries Augustyns
08/09/2021, 7:17 AM
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
Victor Iris
08/10/2021, 1:12 PM
@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