5

I have a form that allows the user to upload several images to a server. This form also allows the user to edit the form as well depending upon qs parameters. As additional information, I am using redux-saga with react, just to provide more background.

I am able to upload the image and allow the user to preview the image after they make their selection and before they upload it. However, upon reviewing the documentation, I do not see a way to populate the react-dropzone field when the user edits the other form items. I saw a way to do a preview onDrop but not with data coming from the server. I also found this article on Stackoverflow because am not sure if it could be applied to my case within the redux-saga scenario: How to add the URL of an image already uploaded, to Dropzone?.

Can this be done and if so how can it be achieved?

user1790300
  • 2,143
  • 10
  • 54
  • 123
  • 1
    Why you need to populate the field initially? [Input type file src is read only](https://stackoverflow.com/questions/15763941/fill-input-file-form-with-javascript). I guess ability to see the image for the user is enough for edit screen, no? What else you'd like to achieve? – Alejandro Oct 14 '19 at 09:18

0 Answers0