Skip to content

Instantly share code, notes, and snippets.

View a4addel's full-sized avatar

Ahmad Addel a4addel

  • Cairo, Egypt
  • 07:53 (UTC +03:00)
View GitHub Profile
import nextConnect from 'next-connect';
import multer from 'multer';
const upload = multer({
storage: multer.diskStorage({
destination: './public/uploads',
filename: (req, file, cb) => cb(null, file.originalname),
}),
});