Chrome memory leak with POST with base64 encoded image in a input - how to solve?
Try using an invisible <textarea>
instead of input hidden
.
It would look like:
<textarea style="display:none" id="XXX">$("XXX").value = base64
Also make sure to remove the input file
completely, keep it outside of the form tags then remove it from the DOM.
Hope this helps