     _id: id
     name: file.name
     status: "In preprocessing queue"
+    readProgress: 0
+    uploadProgress: 0
     preprocessingProgress: 0
-    uploadProgress: 0
     finished: false
     errored: false
     canceled: false

# Local (client-only) document of importing files
class ImportingFile extends Document
  # name: user's file name
  # preprocessingProgress: progress of file preprocessing, in %
  # uploadProgress: progress of uploading file, in %
  # status: current status or error message
  # finished: true when importing has finished
  # errored: true when there was an error

      ImportingFile.documents.update file._id,
      $set:
        # TODO: Remove uploadProgress update when progressbar frontend is updated (#513)
        uploadProgress: progress * 100 # %
        preprocessingProgress: progress * 100 # %

  hash.update file.content, (error, result) ->
    if error
