     else if @currentFile
 
       if @downloadCallback
-        unless @downloadCallback.call _.extend(http, @getUser()), @currentFile
+        unless @downloadCallback.call _.extend(http, @getUser(http)), @currentFile
           responseType = '404'
 
       partiral   = false

    @checkAccess = (http) ->
      if @protected
        user = false
        userFuncs = @getUser()
        {user, userId} = userFuncs
        user = user()



        end = (error, data) ->
          console.timeEnd('insert') if self.debug
          window.removeEventListener "beforeunload", beforeunload, false
          result.progress.set 0
          onUploaded and onUploaded.call self, error, data

