Skip to content

Instantly share code, notes, and snippets.

View a4amado's full-sized avatar

Ahmad Addel a4amado

  • Egypt
  • 07:30 (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),
}),
});