<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>Upload file</title>
    <link rel="stylesheet" href="/static/css/site.css" />
  </head>
  <body>
    <h1>Upload file</h1>
    <p>Maximum total storage: 10 GiB</p>

    {% if error %}
      <p class="error">{{ error }}</p>
    {% endif %}

    {% if success_id %}
      <p>
        Uploaded {{ success_filename }} ({{ success_size }} bytes).
        <a href="/get/{{ success_id }}">Download</a>
      </p>
    {% endif %}

    <form action="/upload" method="post" enctype="multipart/form-data">
      <input type="file" name="file" required />
      <button type="submit">Upload</button>
    </form>
  </body>
</html>
