How can I assign an image directly to a component’s field when I upload it?
In the example below, I uploaded it by assigning it to a field of a SingleType, now I want to upload it again but the field I want to assign my image to is inside a component
POST /api/upload
refId: 1,
ref: "api::configuration.configuration",
field: "logo",
files: file
Structure:
Page → Sections (dynamic zone) > Banner (component) > Image (field of banner component I want to associate)
This topic has been created from a Discord post (1233408509086007296) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord