Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var Storage = multer.diskStorage({
- destination: function(req, file, callback) {
- callback(null, "./pictures");
- },
- filename: function(req, file, callback) {
- pictureSaveFormat = Date.now();
- file.originalname);
- callback(null, pictureSaveFormat + ".jpg");
- }
- });
Add Comment
Please, Sign In to add comment