[FIX] EMPLOYEE: Fixed employee profile picture accepting files other than images

This commit is contained in:
Horilla
2025-12-16 10:49:20 +05:30
parent 1d1758579a
commit 1c0e60ba99
2 changed files with 2 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ aria-hidden="true"
alt="Username"
/>
</div>
<input type="file" name='employee_profile' id="id_employee_profile" class="oh-input oh-input--file oh-input--file-sm mt-4" />
<input type="file" name='employee_profile' id="id_employee_profile" class="oh-input oh-input--file oh-input--file-sm mt-4" accept="image/*" />
<div class="d-flex justify-content-between w-100 align-items-center mt-4">
<button class="oh-btn oh-btn--light-danger mr-1" hx-target='#personalMessage' hx-delete="{% url 'remove-own-profile-image' %}"><ion-icon class="me-1" name="trash-outline"></ion-icon>{% trans "Delete Image" %}</button>
<button

View File

@@ -49,7 +49,7 @@
alt="Username" />
</div>
<input type="file" name="employee_profile" id="id_employee_profile"
class="oh-input oh-input--file oh-input--file-sm mt-4" />
class="oh-input oh-input--file oh-input--file-sm mt-4" accept="image/*" />
{% csrf_token %}
<div class="d-flex justify-content-between w-100 align-items-center mt-4">
<button class="oh-btn oh-btn--light-danger mr-1"