ajoo / templates /upload.html
Raid41's picture
Upload 35 files
45c435a
raw
history blame contribute delete
350 Bytes
<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>