I need help/guide with how to add a field for image upload in my user profile model. I’m coming from my experience using django where in the ORM you can use ImageField for image upload.
Reading from the phoenix docs I understand one can use context generators to set up models. Will the image field be a string?
Most examples of Live File Upload use a string field. But it’s possible to hack a solution where LFU data is converted to Plug.Upload data, then managed by Waffle Ecto.
You can also use jsonb field if You want to store file metadata as well.