make avi upload required

This commit is contained in:
2026-06-02 04:31:12 +03:00
parent 7defd249b5
commit 5676ced836

View File

@@ -15,7 +15,7 @@
<span class="avatar-form-controls"> <span class="avatar-form-controls">
<label for="avatar" class="linkbutton alt">Upload&hellip;</label> <label for="avatar" class="linkbutton alt">Upload&hellip;</label>
<span class="avatar-form-size-label">1MB max. Will be cropped to square.</span> <span class="avatar-form-size-label">1MB max. Will be cropped to square.</span>
<input type="file" style="display: none;" id="avatar" name="avatar" accept="image/*"> <input type="file" style="display: none;" id="avatar" name="avatar" accept="image/*" required>
<input type="submit" value="Save"> <input type="submit" value="Save">
<input type="submit" class="warn" value="Clear" formaction="{{url_for('users.clear_avatar', username=user.username)}}"> <input type="submit" class="warn" value="Clear" formaction="{{url_for('users.clear_avatar', username=user.username)}}">
</span> </span>