This commit is contained in:
2019-09-15 13:18:54 +05:30
parent 2e57ebe609
commit 6364f3da52

View File

@@ -14,6 +14,11 @@ app.use(bodyParser.urlencoded({extended:false}))
app.use(bodyParser.json()) app.use(bodyParser.json())
app.use(busboy()) app.use(busboy())
///Make the directory if it doesnt exist
if(!fs.existsSync(settings.dirname)){
fs.mkdirSync(settings.dirname)
}
// Download file // Download file
//loc //loc
app.get('/files/cat',(req,res,next)=>{ app.get('/files/cat',(req,res,next)=>{