title: How can I change the attribute data-default-file of the input file attribute with jQuery
body: <p>I have the following file input element in my code:</p>
  
  <pre><code> echo "&lt;input type='file' name='webpagefileActualFile' id='wpfActualFile' class='dropify' data-default-file='".base_url()."myfolder/valueShouldBeHere' /&gt;";
  </code></pre>
  
  <p>I was trying to change the value of the input type file with</p>
  
  <pre><code>$('#wpfActualFile').val(result.message.webpagefileActualFile);
  </code></pre>
  
  <p>in my javascript but I get the error Insecure operation. </p>
  
  <p>So the question is: how can I append the value of the result.message.webpagefileActualFile on the end of the data-default-file attribute with jQuery?</p>