 
     options.cssClass      = "file-droparea"
     options.hoverDetect  ?= yes
+    options.uploadToVM   ?= yes
     options.defaultPath or= "/home/#{KD.nick()}/Uploads"
 
     super options, data

      event.stopPropagation()

  reset: ->
    @setPath()
    @updatePartial """
      <div class="file-drop">
        Drop files here!
        <small>#{@getOptions().defaultPath}</small>
      </div>
    """


    @updatePartial """
      <div class="file-drop">
        Drop files here!
        <small>#{if @getOptions().uploadToVM then (FSHelper.getVMNameFromPath(@path) or '') else ''}</small>
        <small>#{if @getOptions().uploadToVM then FSHelper.plainPath @path else ''}</small>
      </div>
    """
    @addSubView new KDCustomHTMLView
      tagName   : "a"
      partial   : "cancel"
      cssClass  : "cancel"
      attributes: href: "#"
      click     : => @emit "cancel"

  upload: (file, data)->
    modalStack  = KDModalView.createStack lastToFirst: yes
    uploadDir   = FSHelper.createFileFromPath @path, 'folder'
    uploadFile  = FSHelper.createFileFromPath "#{@path}/#{file}"
