       click     : => @emit "cancel"
 
   saveFile: (fsFile, data) ->
-    @emit "uploadStart", fsFile
+
+    filePath   = "[#{fsFile.machine.uid}]#{fsFile.path}"
+    parentPath = "[#{fsFile.machine.uid}]#{fsFile.parentPath}"
+
+    fsFile.save "", => @emit 'uploadComplete', { filePath, parentPath }
+
     fsFile.saveBinary data, (err, res, progress)=>
 
       log "Upload result:", err, res, progress

      progress or= res
      return if err
      if res.finished
        @emit "uploadEnd", fsFile
      else if res.abort
        @emit "uploadAbort", fsFile
      else
        @emit "uploadFile", fsFile, progress.percent

  upload: (fileName, contents, relativePath)->


      @on "dragover",  => @setClass   "hover"
      @on "dragleave", => @unsetClass "hover"
      @on "drop",      => @unsetClass "hover"

    KD.singletons.mainController.ready @bound 'reset'

