text: const multer = require('multer');
  const storage = multer.diskStorage(
    {
      destination: (req, file, cb) => 
      {
        cb(null, './public/images');
      },
      filename: (req, file, cb) =>
      {
        cb(null, `${Date.now().toString()}_${file.originalname}`);
      }
    });
  const fileFilter = (req, file, cb) => 
  {
    const isAcceptable = ['image/png', 'image/jpg', 'image/jpeg']
      .find(acceptedFormat => acceptedFormat == file.mimetype);
    if (isAcceptable)
      return cb(null, true);
    return cb(null, false);
  };
  module.exports = multer(
    {
      storage,
      fileFilter
    });