Updating User Photo from Front-End
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;