         duration   : 120000
       kiteController.run "mkdir -p Web ; cp #{plainPath} #{relativePath}", (err, res) =>
         return  warn err if err
+        notification.hide()
         kallback()

          fileItemViews.push fileItemView

  saveToDropbox: (nodeView) ->
    notification   = null
    kiteController = KD.getSingleton "kiteController"
    plainPath      = FSHelper.plainPath nodeView.getData().path
    isFolder       = nodeView.getData().type is "folder"
    timestamp      = Date.now()
    tmpFileName    = if isFolder then "tmp#{timestamp}.zip" else "tmp#{timestamp}"
    relativePath   = "/home/#{KD.nick()}/Web/#{tmpFileName}"
    kallback       = ->
      fileName     = FSHelper.getFileNameFromPath plainPath
      fileName     = "#{fileName}.zip"  if isFolder
      options      =
        files      : [
          filename : fileName
          url      : "http://#{KD.getSingleton('vmController').defaultVmName}/#{tmpFileName}"
        ]
        success: ->
          notification.notificationSetTitle "Your file has been uploaded."
          notification.notificationSetTimer 4000
          notification.setClass "success"
          kiteController.run "rm #{relativePath}"
        error: ->
          notification.notificationSetTitle "An error occured while uploading your file."
          notification.notificationSetTimer 4000
          notification.setClass "error"

      Dropbox.save options

    if isFolder
      notification = new KDNotificationView

          notification.notificationSetTimer 4000
          notification.setClass "error"
        else
          notification.hide()
          kallback()
    else
      notification = new KDNotificationView
