This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// When setting up your application define what you need using | |
// http://expressjs.com/api.html#app.use | |
// In this case we are creating an instance of 'Bar' | |
app.use(function( req, res, next ) { | |
res.locals.foo = 1; | |
next(); | |
}); | |
// Later on in your routes you have access to the instance of 'Bar' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Orchestra.io Upload to Temp | |
Plugin URI: | |
Description: Sets the upload path to sys_get_temp_dir(), allowing uploads to be stored temporarily, presumably before being moved elsewhere (like Amazon S3 via the tantan-s3 plugin). | |
Version: 0.1 | |
Author: Dylan Kuhn | |
Author URI: http://www.cyberhobo.net/ | |
Minimum WordPress Version Required: 3.0 | |
License: GPL2+ |