Advertisement
xapu

Untitled

Oct 4th, 2017
400
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. form
  2.     .on('error', err => {
  3.       console.log(err)
  4.     })
  5.     .on('fileBegin', (name, file) => {
  6.       fs.access(`./public/memeStorage/${dbLength}`, err => {
  7.         if (err) {
  8.           console.log(err)
  9.           fs.mkdirSync(`./public/memeStorage/${dbLength}`)
  10.         }
  11.         file.path = memePath
  12.       })
  13.     })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement