Spaces:
Runtime error
Runtime error
Update templates/index.html
Browse files- templates/index.html +12 -12
templates/index.html
CHANGED
|
@@ -109,18 +109,18 @@
|
|
| 109 |
<input type="submit" value="Upload your Images" class="btn btn-outline-primary" />
|
| 110 |
</form>
|
| 111 |
|
| 112 |
-
{
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
{% endif %}
|
| 125 |
</div>
|
| 126 |
|
|
|
|
| 109 |
<input type="submit" value="Upload your Images" class="btn btn-outline-primary" />
|
| 110 |
</form>
|
| 111 |
|
| 112 |
+
{% if session.get('uploaded_file') %}
|
| 113 |
+
<p class="mt-4">
|
| 114 |
+
Uploaded:
|
| 115 |
+
<span class="text-danger">{{ session.get('uploaded_file') }}</span>
|
| 116 |
+
</p>
|
| 117 |
+
<div class="file-actions">
|
| 118 |
+
<form action="{{ url_for('remove_file') }}" method="post">
|
| 119 |
+
<button type="submit" class="btn btn-outline-danger">
|
| 120 |
+
<i class="bi bi-trash"></i> Remove Uploaded File
|
| 121 |
+
</button>
|
| 122 |
+
</form>
|
| 123 |
+
</div>
|
| 124 |
{% endif %}
|
| 125 |
</div>
|
| 126 |
|