Select Text read_text.html
upload_image.html
<!-- upload_image.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Upload Image</title>
</head>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f2f2f2;
padding: 20px;
}
img {
max-width: 100%;
height: auto;
}
a {
text-decoration: none;
color: orange;
font: bold;
font-size: 30px;
}
</style>
<body>
<h1>Upload Image</h1>
<a href="/">Home</a>
<form action="/upload_image" method="POST" enctype="multipart/form-data">
<label for="image">Choose an image to upload:</label>
<input type="file" name="image" id="image" required>
<button type="submit">Upload</button>
</form>
<img src="static/temp_jpg.jpg" alt="Uploaded Image" style="max-width:100%; height:auto;">
</body>
</html>
Back to file list