I have a form builder and I want to add drag and drop file capabilities.
Where I'm stuck is that all the resources I'm coming across upload the image via xhr when dropped. I want the image to persist until the form is submitted.
Ideally the event.dataTransfer.files[0] object would be transferred to the <input type="file" ...value="[dropped-file]"> element.
Currently I'm unable to make this happen. Do they use compatible data types?