     #     console.log file.pat`h
     #     $('<p/>').text(file.path).appendTo(document.body)
   })
-  
+
   # send text
   $("form#send_text").submit (e) ->
     e.preventDefault()
     form = $(this)
+    formData = form.serialize()
 
     $('.instructions').hide()
 

    row = uploadRowHTML(filename)
    $('.filelist .files').append(row)

    $.post(form.attr("action"), form.serialize(), (data, textStatus, jqXHR) -> 
      console.log("text uploaded")
      # re-enable everything
      form.find("input, textarea").removeClass("disabled").removeAttr("disabled")

    # disable everything
    form.find("input, textarea").addClass("disabled").attr("disabled", "disabled")

    # calculate the same filename the server will calculate so we can update the UI right away
    filename = $("#timestamp").text()
    filename_value = $("#filename").val()
    filename += " " + filename_value if filename_value && filename_value != ""
