Skip to content
Snippets Groups Projects
Commit 4772aef6 authored by George Secrieru's avatar George Secrieru
Browse files

Reverting special treatment for image delivery.

parent f39355ee
No related branches found
No related tags found
No related merge requests found
......@@ -41,8 +41,7 @@ if UploadFS?
onFinishUpload: ->
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