Skip to content

Instantly share code, notes, and snippets.

@amalj07
Last active November 26, 2020 15:24
Show Gist options
  • Save amalj07/d5bd1d63747ee841b00e19f7852606bb to your computer and use it in GitHub Desktop.
Save amalj07/d5bd1d63747ee841b00e19f7852606bb to your computer and use it in GitHub Desktop.
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