Last active
March 18, 2018 19:07
-
-
Save WaleedAshraf/c976d0d118332b1eef043e690326ce9f to your computer and use it in GitHub Desktop.
Mock Express Session
This file contains 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
exports.create = function(req, res) { | |
// upload image to s3 | |
var photos = PhotosTable.create(req.files.names); // add entries in database | |
req.session.count = photos.length; // set count in req.session | |
res.redirect(`api/image/submit`); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment