title: Express.js: Change the default public/images folder to another directory (outside the Express.js one)
body: <p>In Express.js, I would like to keep my images/videos outside the Express.js project folder, meaning NOT in public/images. For instance, right now my media is in the Express.js project folder:</p>
  
  <pre><code>/home/myName/Project/public/images
  </code></pre>
  
  <p>And I would like my images/videos to be in</p>
  
  <pre><code>/home/myName/allMyMedia
  </code></pre>
  
  <p>My app.configure() function right now looks like this:</p>
  
  <pre><code>app.configure(function(){
  app.set('port', process.env.PORT || 3000);
  app.set('views', __dirname + '/views');
  app.set('view engine', 'jade');
  app.use(express.favicon());
  app.use(express.logger('dev'));
  app.use(express.bodyParser());
  app.use(expressValidator);
  app.use(express.methodOverride());
  app.use(express.cookieParser('your secret here'));
  app.use(express.session());
  app.use(app.router);
  app.use(require('less-middleware')({ src: __dirname + '/public' }));
  app.use(express.static(path.join(__dirname, 'public')));
  });
  </code></pre>
  
  <p>I tried to change the '/public' to '../public' but that did not work. I also played a little bit around with the other path declarations for public, but up to know I could not figure out how to fix this. Any help would be appreciated.</p>