I need to simulate a user dragging and dropping images onto a file-upload div. I'll be pulling the images from an aws s3 bucket.
This question covers how to simulate the event. However, the drop is accomplished by invoking the .drop() event on the dropzone div.
However, in my case, the code will be run in a content script injected by a Chrome extension. This means, afaik, I can't invoke the drop() method on the page's dropzone div.
Is there another way to simulate the drag-and-drop function?
If it matters, the page I'm dealing with appears to be using jQuery UI ddmanager to control its file dropzone div.