Last active
November 26, 2020 15:24
-
-
Save amalj07/d5bd1d63747ee841b00e19f7852606bb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express') | |
const multer = require('multer') | |
const app = express() | |
const upload = multer({ | |
storage: multer.memoryStorage() | |
}) | |
app.post('/upload', upload.single('file'), (req, res) => { | |
console.log("File upload API") | |
} | |
app.listen(5000, () => { | |
console.log('🚀Server listening on port 5000') | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment