How to store image path in database?

I use S3 compatible service: Storj for storing my images. So when you upload file you get bucket name and key. Do you store bucket and key in database? Or you just store url and extract bucket and key from in during deletion? Are you create several tables of images or create 1 image table and make many to many with other tables? Also if I possibly will have 2 image storage providers I need to store provider id.
0 Replies
No replies yetBe the first to reply to this messageJoin