quadfile/templates/upload.html

18 lines
495 B
HTML
Raw Normal View History

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