-saveUrl = (uuid, public_url) ->
+saveUrl = (uuid, filename, public_url) ->
   private_url = null
 
   $.ajax

  form = fileField.parent()
  fileInput = document.getElementById("file")
  file = fileInput.files[0]

  $.ajax
    type: "GET"

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