Skip to content
Snippets Groups Projects
Commit 4273eb7b authored by Rodrigo Nascimento's avatar Rodrigo Nascimento
Browse files

Force download of uploaded files

parent 9ea9ee90
No related branches found
No related tags found
No related merge requests found
......@@ -20,3 +20,5 @@ if UploadFS?
contentTypes: ['image/*', 'audio/*']
onFinishUpload: ->
console.log arguments
onRead: (fileId, file, req, res) ->
res.setHeader 'content-disposition', 'download'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment