Hello Fellas,
I have been using
live_file_input
The way it was explained by @chrismccord in this Phoenix LiveView Uploads Deep Dive - YouTube
I uploading the images to s3 bucket.
Everything works fine but I got a new recuirment that the field holding the urls of the images is a map in order to be able to have something like
%TheStruct{image_urls: %{medium: "some_url", mobile_phone: "some other url"}}
So what this means is I need a file input that’s strictly associated with a particular image to be uploaded.
How would you aproach that issue ?
Could having a different struct just to hold image infmartions be the best possible option (creating a seperate live component just to faciltate the images structs )?