Commit 1c5e658e authored by Skia's avatar Skia

Remove shitty AJAX upload

parent da35292c
......@@ -52,30 +52,4 @@
{% block script %}
{{ super() }}
<script>
$("form").submit(function (event) {
event.preventDefault();
var formData = new FormData($(this)[0]);
var formKeys = formData.keys();
var formEntries = formData.entries();
$.ajax({
url: '',
type: 'POST',
data: formData,
async: false,
cache: false,
contentType: false,
processData: false,
success: function (returndata) {
alert("Upload OK!");
},
error: function () {
alert("Upload failed");
}
});
return false;
});
</script>
{% endblock %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment