Allow only image uploads for avatar

pull/95/head
Rodrigo Nascimento 11 years ago
parent ebe281102d
commit ad61251464
  1. 4
      lib/file.coffee

@ -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: ->

Loading…
Cancel
Save