title: POST text data as file in form
body: <p>Is it possible to  POST some XML data i have as string as file input type from a html form.</p>
  
  <p>The case is i have a form like </p>
  
  <pre><code>form action="target.php" method="post" enctype="multipart/form-data"&gt;
     &lt;input type="file" name="file" id="file"&gt;&lt;br&gt;
     &lt;input type="submit" name="submit" value="Submit"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I have some xml data as string in my javascript code and i want to sent that string from the form as if it was uploading as a file with the file input tag</p>
  
  <p>Thanks</p>