             window.removeEventListener "beforeunload", beforeunload, false
             onAbort and onAbort.call file, fileData
             @pause()
+            @state.set "aborted"
             Meteor.call self.methodNames.MeteorFileAbort, randFileName, streams, file
             delete upload
+          state: new ReactiveVar "active"
 
         result.progress.set = _.throttle result.progress.set, 250
 

          continueFrom: []
          pause: () ->
            @onPause.set true
          continue: () ->
            @onPause.set false
            func.call null for func in @continueFrom
            @continueFrom = []
          toggle: () ->

          console.timeEnd('insert') if self.debug
          window.removeEventListener "beforeunload", beforeunload, false
          result.progress.set 0
          if !error
            result.state.set "completed"
          onUploaded and onUploaded.call self, error, data

        if onBeforeUpload and _.isFunction onBeforeUpload
