Skip to content

Commit

Permalink
Comments app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
tiprock-network committed Sep 14, 2023
1 parent 39f6a60 commit 09a6ca6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,16 @@ const storage = multer.diskStorage({
cb(null, file.fieldname + '-' + uniqueSuffix + '.' + file.originalname.split('.').pop());
},
});

//handles file uploads from the form
const upload=multer({dest:'uploads/',storage:storage})
let projectID=''

//create express app
const app=express()



//middleware
//set the view engine
app.set('view engine','ejs')
app.use(body_parser.urlencoded({extended:true}))
//app.use(fileUpload({useTempFiles: true,}))
Expand Down

0 comments on commit 09a6ca6

Please sign in to comment.