Skip to content

Commit 24c1fbf

Browse files
author
mominur-helios
committed
restore file submit button
1 parent 7d0691c commit 24c1fbf

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

templates/pages/file-manager.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,16 @@
5959
</ul>
6060
</div>
6161
<div class="col-lg-9 border py-2">
62+
<div class="d-flex justify-content-end mb-3">
63+
<label for="fileInput">
64+
<i class="fa-solid fa-upload text-primary fs-3"></i>
65+
</label>
66+
<form method="post" action="{% url 'upload_file' %}" id="upload-file" enctype="multipart/form-data">
67+
{% csrf_token %}
68+
<input type="hidden" name="directory" value="{{ selected_directory }}">
69+
<input id="fileInput" class="d-none" onchange="submitForm()" type="file" name="file" required>
70+
</form>
71+
</div>
6272
{% if files %}
6373
<div class="table-responsive">
6474
<table class="table">

0 commit comments

Comments
 (0)