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

Remove all references to CollectionFS

parent e1eb44b3
No related branches found
No related tags found
No related merge requests found
......@@ -45,10 +45,15 @@ Template.avatarPrompt.events
template.getSuggestions()
'change .avatar-file-input': (event, template) ->
FS.Utility.eachFile event, (blob) ->
file = new FS.File(blob)
if not file? or file.isImage() is false
return
e = event.originalEvent or event
files = e.target.files
if not files or files.length is 0
files = e.dataTransfer?.files or []
for blob in files
if not /image\/.+/.test blob.type
return
reader = new FileReader()
reader.readAsDataURL(blob)
reader.onloadend = ->
......
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