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

Allow only image uploads for avatar

parent ebe28110
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,6 @@ if storeType is 'FileSystem'
path = "~/uploads"
if Meteor.settings?.public?.avatarStore?.path?
path = Meteor.settings.public.avatarStore.path
console.log path
store = new FS.Store.FileSystem "avatars",
path: path
......@@ -27,6 +26,9 @@ else
@Avatars = new FS.Collection "avatars",
stores: [store]
filter:
allow:
contentTypes: ['image/*']
@Avatars.allow
insert: ->
......
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