title: How do I handle local file uploads in electron?
body: <p>I'm having a hard time figuring out how to approach file uploads in atom electron. I would post code but I don't even know where to begin with this one.</p>
  <p>In a standard web app I would post from the client to the server, either via a standard postback or using an ajax request. I have some pretty cool solutions for that. But in the case of electron, I'm not sure where or how to &quot;post&quot; the file back. I guess I just want to access the contents of my <code>&lt;input type='file' /&gt;</code> from node.js. How do I do this?</p>
  <p>I could post to the browser process, but I don't know what the &quot;address&quot; would be. Or do I need to create a separate &quot;page&quot; in my app just to accept form posts? My background in web-dev is probably blinding me to some obvious answer, can someone help?</p>
  <h1>EDIT</h1>
  <p>Just to add a little more context, I have a <code>.csv</code> file which I'd like to allow the user to upload. I will then process this using node-csv and insert each returned row into the app's nedb datastore.</p>