Hello! I want to take photos from a request which is sent when a parent component is rendered and add the images from the request to the dashboard so when the dashboard is loaded and rendered it would have the images selected on it. I cannot do it whatever I try and would love the help.
This is a picture of how I declare my uppy with the useUppy hook.
My dashboard component looks like
Before returning the Uppy instance you would need to add the files to the Uppy instance using uppy.addFiles({ ... }) (This is currently undocumented, I’m working on a PR now to add this to the official docs)
Assuming you have the blob data for the image(s) in the component’s props passed from the parent component you could implement it roughly like so.
Also assume that props.images is an array of file objects from the parent component with a format like this: