title: Send base64 string image to form input field
body: <p>I have a plugin which crops my image and sends back a base64 data that looks like this: <code>data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQ...</code></p>
  
  <p>Question is how can I send that data to my file input field? If I do <code>$("input#file").val(img);</code> where <code>img</code> is my base64 string I get <code>SecurityError: The operation is insecure.</code></p>