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

Fix name of downloaded files in windows

parent 0b2097b0
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,7 @@ if UploadFS?
onFinishUpload: ->
console.log arguments
onRead: (fileId, file, req, res) ->
res.setHeader 'content-disposition', "attachment; filename=\"#{ file.name }\""
res.setHeader 'content-disposition', "attachment; filename=\"#{ encodeURIComponent(file.name) }\""
if Meteor.isServer
initFileStore()
......
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