I have a big question about Strapi v4, I understand that a lot of people are asking it. But I spent 4 hours surfing the internet and I found many cases, but none of them are either solved or just abandoned.
The question is (see screenshots)
I have a component, it has a Media field, how can I load an image into this field using RestAPI?
I was able to load an image if my property (this is the parent of the properties collection) has just the "Media" field, without any components/dynamic zones/blocks involved.
But at the moment the implementation requires that I use a nested Media field, since this component is repeated, and it will have different items (rooms), and each room has its own photo, or an array of photos.
I'm trying to figure out what kind of request I need to make (Or create a custom controller) so that when I pass the correct data and path to formData, I would load and then bind the image to a specific field in the component?
In fact, the nesting is deeper, but in general the question is clear.
I would be grateful for any advice.