File size: 350 Bytes
212d7be |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
<style>
form{
position:fixed;
top:50%;
left:45%;
width:1250px;
}
</style>
<form id="form" method="POST" action="/" enctype="multipart/form-data">
{{ form.hidden_tag() }}
{{ form.file(size=20) }}
</form>
<script>
document.getElementById("file").onchange = function() {
document.getElementById("form").submit();
};
</script>
|