title: How do I get and set the path for input type=file?
body: <p>I need to create a <code>greasemonkey userscript</code> which can get the path of an uploaded image, store it, and then set it on a different page's <code>upload input</code>.</p>
  
  <p>As far as I understand it is not possible to figure out the file path on an <code>input type=file</code> with <code>javascript</code> alone.</p>
  
  <p>But is this possible with <code>greasemonkey</code>?</p>
  
  <p>How close can I get to the desired functionality and what options do I have?</p>
  
  <p>So far I have tried to access the <code>input's</code> value via <code>val()</code> but it doesn't work at all.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>If I can't get the path, can I at least set it, provided I always use the same folder?</p>