My javascript script has an image as URI data, like this:
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA
AAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO
9TXL0Y4OHwAAAABJRU5ErkJggg==
I have a multipart/form-data form that has an <input type="file" />
element. I want to use that <input type="file" />
element to send my image(the one I have as a Data URI) to the server.
I have no control over the server.
Is there a way to achieve this? Some way I can trick the browser to send my image to the server?