title: Node.js server using Express.js uploaded file name
body: <p>Some background: I'm trying to create a web service using node.js and express that accepts a POST request with an image attached.</p>
  
  <p>I have been able to send the request successfully, but I want to be able to do something with the image. All of the examples that I've seen with that do this use a form to upload a file using POST, doing so, allows them to give a name to the file that they are going to upload. Allowing them to do the following</p>
  
  <pre><code>app.post('/upload',function(req,res) {
      req.files.formName // have access to the file's information
  }
  </code></pre>
  
  <p>I just want to be able to create a POST request in REST-like way, so the file gets upload via an API call so when the file gets to the server, express gives it a random name and the way to access the file in the files array is to use the actual pictures filename, which depends on what the user's filename is and I can't make that constant.</p>
  
  <pre><code>app.post('/upload',function(req,res) {
      req.files.&lt;what goes here&gt;
      req.files[0] // this wont work
  }
  </code></pre>
  
  <p>Your help is appreciated, and if I'm doing this the wrong way, say using express is a bad choice, then please go ahead and suggest. I'm doing this project to learn how to use node.js and all of it's goodness.</p>