       file.previewTemplate.find(".filename span").text file.name
       file.previewTemplate.find(".details").append o """<div class="size">#{@filesize file.size}</div>"""
 
+
+    # Called whenever a file is removed.
+    removedfile: (file) ->
+      file.previewTemplate.remove()
 
     # Called when a thumbnail has been generated
     # Receives `file` and `dataUrl`

  # Individual callbacks have to be called in the appropriate sections.
  errorProcessing: (file, message) ->
    @files.processing = without(@files.processing, file)
    @emit "error", file, message
    @emit "complete", file
    @processQueue()

    "dragleave"
    "selectedfiles"
    "addedfile"
    "removedfile"
    "thumbnail"
    "error"
    "processingfile"
