   form = fileField.parent()
   fileInput = document.getElementById("file")
   file = fileInput.files[0]
+  fileName = file.name
 
   $.ajax
     type: "GET"

saveUrl = (uuid, public_url) ->
  private_url = null

  $.ajax

    async: false
    data:
      uuid: uuid
      filename: filename
      public_url: public_url
    success: (data, status, xhr) ->
      private_url = data.private_url
