             return true if option.indexOf('true') > -1
         return false
       $scope.uploadFiles = (model,id,file,parent) ->
-        uploadFiles($scope,$element,model,id,file,parent,$timeout)
+        uploadFiles($scope,$element,model,id,file,parent,$timeout,callback())

      data.thumb = scope[unparsedModel[0]].thumb.url if scope[unparsedModel[0]].thumb
  return data

uploadFiles = (scope,element,model,id,file,parent,timeout) ->
  scope.progress = 0
  element.addClass('covered')
  route = Routes[element[0].attributes['ng-model'].value.split('.')[0] + '_path'](id: id) + '.json'

        return attributes.accept if attributes.accept
        return '*'
    controller: ($scope, $element, $http, $timeout) ->
      callback = ->
        $element[0].attributes['ng-callback'].value if $element[0].attributes['ng-callback']
      $scope.show = (type) ->
        options = $element[0].attributes['ng-upload-options'].value.replace('{','').replace('}','').split(',')
        for option in options
