flask_crud_app/templates/upload.html

21 lines
595 B
HTML
Raw Normal View History

2025-01-30 07:37:21 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Upload CSV File</title>
</head>
<body>
<h1>Upload CSV File</h1>
<form action="/uploadcsv" method="POST" enctype="multipart/form-data">
<label for="file">Choose a CSV file:</label>
<input type="file" id="file" name="file" accept=".csv" required>
<br><br>
<button type="submit">Upload</button>
</form>
{% if error %}
<p style="color: red;">{{ error }}</p>
{% endif %}
</body>
</html>