Is it possible to store multiple images in one database field?

Is it possible to store multiple images in one database field? Such that if i were to upload them i will view them one at a time in my webpage?

You could store images in a table, and use has_many relationship…

3 Likes

You can, but if you need to, then use @kokolegorille solution. And the best solution is to not store images in your DB, but use external object storage instead.

4 Likes

Adding to @kokolegorille and @hauleth you could use Cloudinary for simple image storing and retrieving.

2 Likes

Thanks and this helped alot. And finally how do you upload multiple images using a dropbox in elixir?

Check Dropbox API V2 it has all what you might need for that.

1 Like

Thanks and this was a very helpful site aligredo

1 Like