quadfile/templates/upload.html

13 lines
392 B
HTML
Raw Normal View History

2015-12-23 13:11:38 +00:00
{% extends "layout.html" %}
{% block body %}
<form action="" id="form" method="post" enctype="multipart/form-data" class="uploadForm">
<input id="file" type="file" name="file">
<input type="hidden" name="source" value="web">
</form>
<script>
document.getElementById("file").onchange = function() {
document.getElementById("form").submit();
};
</script>
{% endblock %}