goshare/templates/index.html

37 lines
980 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Upload files | goshare</title>
<link rel="stylesheet" href="/static/style.css">
</head>
<body>
<div class="container">
<h1>Upload files</h1>
<form
action="/api/upload"
method="post"
enctype="multipart/form-data"
>
<div id="upload-box"
ondrop="dropHandler(event)"
ondragover="dragOverHandler(event)"
>
<label for="file-input">Choose file to upload</label><br/>
<input id="file-input" type="file" name="file">
</div>
<label for="retention-select">Retention period</label>
<select name="retention" id="retention-select">
<option value="1_day">One Day</option>
<option value="2_day">Two Days</option>
</select>
<button id="upload-btn" type="submit">Upload</button>
</form>
</div>
<script src="/static/script.js"></script>
</body>
</html>