title: parsing a formdata object with javascript
body: <p>My company uses a propitiatory application server in which the server side programs are written in javascript (not node.js) . This is a very initial thing and support isn't that good</p>
  
  <p>Now here is my problem : </p>
  
  <p>I am having to process an uploaded csv on the server side .. I am using the super answer at <a href="https://stackoverflow.com/questions/166221/how-can-i-upload-files-asynchronously-with-jquery/8758614#8758614">How can I upload files asynchronously?</a> (passing the formdata object with jquery) and i am able to access the sent file on the server side . But how do i parse it out ? </p>
  
  <p>It looks like this</p>
  
  <pre>
  ------WebKitFormBoundaryU5rJUDxGnj15hIGW
  Content-Disposition: form-data; name="fileToUpload"; filename="test.csv"
  Content-Type: application/vnd.ms-excel
  
  1
  2
  3
  4
  5
  6
  7
  8
  9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  
  ------WebKitFormBoundaryU5rJUDxGnj15hIGW--
  </pre>
  
  <p>I'm really confused how to handle this file with plain javascript on the server side. </p>
  
  <p>Please help.</p>