Force download of uploaded files

pull/834/merge
Rodrigo Nascimento 10 years ago
parent 9ea9ee90cf
commit 4273eb7bd0
  1. 2
      lib/fileUpload.coffee

@ -20,3 +20,5 @@ if UploadFS?
contentTypes: ['image/*', 'audio/*']
onFinishUpload: ->
console.log arguments
onRead: (fileId, file, req, res) ->
res.setHeader 'content-disposition', 'download'

Loading…
Cancel
Save