DmitrMakeev's picture
Update templates/index.html
adba3f8
raw
history blame contribute delete
478 Bytes
<!DOCTYPE html>
<html>
<head>
<title>Загрузка файла</title>
</head>
<body>
<h1>Загрузка файла</h1>
<form method="POST" enctype="multipart/form-data">
<input type="file" name="txt_file" accept=".txt"><br>
<button type="submit">Загрузить</button>
</form>
{% if json_content %}
<h2>Содержимое файла JSON:</h2>
<pre>{{ json_content | safe }}</pre>
{% endif %}
</body>
</html>