Spaces:
Runtime error
Runtime error
Update templates/index.html
Browse files- templates/index.html +9 -9
templates/index.html
CHANGED
|
@@ -102,23 +102,23 @@
|
|
| 102 |
|
| 103 |
<div class="file-upload-section">
|
| 104 |
|
|
|
|
| 105 |
<form id="fileUploadForm" action="{{ url_for('upload_file') }}" method="POST" enctype="multipart/form-data">
|
| 106 |
<!-- <input type="file" name="file" class="form-control" required /> -->
|
| 107 |
-
<input type="file" name="files
|
| 108 |
<input type="submit" value="Upload your Images" class="btn btn-outline-primary" />
|
| 109 |
-
</form>
|
| 110 |
-
|
|
|
|
| 111 |
<p class="mt-4">
|
| 112 |
Uploaded:
|
| 113 |
<span class="text-danger">{{ session.get('uploaded_file') }}</span>
|
| 114 |
</p>
|
| 115 |
-
<
|
| 116 |
-
<
|
| 117 |
-
<button type="submit" class="btn btn-outline-danger">
|
| 118 |
<i class="bi bi-trash"></i> Remove Uploaded File
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
</div>
|
| 122 |
{% endif %}
|
| 123 |
</div>
|
| 124 |
|
|
|
|
| 102 |
|
| 103 |
<div class="file-upload-section">
|
| 104 |
|
| 105 |
+
|
| 106 |
<form id="fileUploadForm" action="{{ url_for('upload_file') }}" method="POST" enctype="multipart/form-data">
|
| 107 |
<!-- <input type="file" name="file" class="form-control" required /> -->
|
| 108 |
+
<input type="file" name="files" multiple class="form-control" required />
|
| 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 |
+
<form action="{{ url_for('remove_file') }}" method="post">
|
| 118 |
+
<button type="submit" class="btn btn-outline-danger">
|
|
|
|
| 119 |
<i class="bi bi-trash"></i> Remove Uploaded File
|
| 120 |
+
</button>
|
| 121 |
+
</form>
|
|
|
|
| 122 |
{% endif %}
|
| 123 |
</div>
|
| 124 |
|