andhikagg commited on
Commit
82a7cff
·
verified ·
1 Parent(s): 0b6ba58

Update main.coffee

Browse files
Files changed (1) hide show
  1. main.coffee +1 -1
main.coffee CHANGED
@@ -41,7 +41,7 @@ app.all '/upload', (req, res) ->
41
  if not ftype then ftype = mime: 'file', ext: 'bin'
42
 
43
  randomName = Math.random().toString(36).slice(2)
44
- fileName = "#{ftype.mime.split('/')[0]}-NDXZ#{randomName}.#{ftype.ext}"
45
  await fs.promises.writeFile "#{tmpFolder}/#{fileName}", fileBuffer
46
 
47
  res.json
 
41
  if not ftype then ftype = mime: 'file', ext: 'bin'
42
 
43
  randomName = Math.random().toString(36).slice(2)
44
+ fileName = "#{ftype.mime.split('/')[0]}-NDXZ-#{randomName}.#{ftype.ext}"
45
  await fs.promises.writeFile "#{tmpFolder}/#{fileName}", fileBuffer
46
 
47
  res.json