             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())

        scope[model[0]].thumb = data.thumb
        scope.progress = 100
        element.removeClass('covered')

    else if this.readyState == 4 && this.status > 399
      failed()
  , false

        fileData(scope,attributes)

    controller: ($scope, $element, $http, $timeout) ->
      callback = ->
        $element[0].attributes['ng-callback'].value if $element[0].attributes['ng-callback']
      $scope.uploadFiles = (model,id,file,parent) ->
        uploadFiles($scope,$element,model,id,file,parent,$timeout,callback())
      $scope.progress = 0
      $scope.uploadProgress = ->
        return $scope.progress
