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

Fix the cutted name in downloaded files

parent c517994c
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,7 @@ if UploadFS?
console.log arguments
onRead: (fileId, file, req, res) ->
unless file?.type?.match(/^image\/.*/)
res.setHeader 'content-disposition', "attachment; filename='#{ file.name }'"
res.setHeader 'content-disposition', "attachment; filename=\"#{ 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