mangaaa / templates /upload.html
Keiser41's picture
Upload 246 files
212d7be
raw
history blame
No virus
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>