Updating User Photo from Front-End I have this form, there's no errors getting thrown and the User photo field is not updating via this form.

      &lt;form method="post" accept-charset="UTF-8" enctype="multipart/form-data"&gt;
        {{ csrfInput() }}
        &lt;input type="hidden" name="action" value="users/save-user"&gt;
        &lt;input type="hidden" name="redirect" value="users/{{ currentUser.username }}"&gt;
        &lt;input type="hidden" name="userId" value="{{ currentUser.id }}"&gt;

        &lt;div class="form-group"&gt;
          {% if currentUser.photoUrl|length %}
              &lt;img src="{{ currentUser.photoUrl }}" class="img-fluid mb-2 border" /&gt;
          {% else %}
            &lt;img src="http://placehold.it/1024x468/f5f5f5/ccc.png" class="img-fluid mb-2" alt="{{ entry.title }}" /&gt;
          {% endif %}
          &lt;label&gt;Profile Picture&lt;/label&gt;
          &lt;input type="file" name="fields[photo]" class="form-control-file upload"&gt;
        &lt;/div&gt;

        &lt;input type="submit" value="Save Profile"&gt;

      &lt;/form&gt;


I'm unsure why it's not working, as it's fairly identical to some questions on SO.
Im my form, I also have a hidden field for the user photo:

&lt;input type="hidden" name="photo" value="{{ currentUser.photo }}"&gt;.

I have {% if currentUser.photo %} instead of {% if currentUser.photoUrl|length %}.

Also, &lt;img src="{{ currentUser.getPhoto.getUrl() }}"&gt; instead of &lt;img src="{{ currentUser.photoUrl }}"&gt;. This should display the current photo.

EDIT:

File input field name should be photo: &lt;input type="file" id="photo" name="photo"&gt;