title: How to serve static profile images in node
body: <p>This is really more of a "using what method" than a "how-to" question. I am creating a site in NodeJS with Express. So, each user has the ability to upload a <code>profile picture</code>, and my concern is how to route requests for these images. A couple of questions I have are:</p>
  
  <ul>
  <li><p>Can I use express.static() to serve a default file if a valid one isn't specified? If not, am I going to have to specify a <code>GET</code> route for <code>/img/profile</code>and handle the FS querying there?</p></li>
  <li><p>How can I find the correct image if multiple file extensions are allowed? (I originally just removed the file extension and they appeared in img tags anyway, is that okay?)</p></li>
  <li><p>I am currently naming all pictures after their user's name. Looking ahead into the future (for apps I may have to scale), what are normal naming conventions for static user content? Are most stored with a UUID referencing the content in the database?</p></li>
  <li><p>What else should I take into consideration that I may not have accounted for yet?</p></li>
  </ul>