JS Upload file to HTML File Element preserving the effects of a regular click JS Upload file to HTML File Element preserving the effects of a regular click
How can I use javascript to upload an image to a specific HTML file element (for example, the dropzone on images.google.com)?
I have tried doing
fileElement.files = [myFile];
But that just uploads my file to the specific HTML file element, without triggering the normal effect of uploading to that file element (for example, triggering the actual google search of the image)
from Stackoverflow
Comments
Post a Comment