I use the latest pro version of ACF. With this I have assigned an image as an avatar that is then seen in the custom-profiole-template that I have made. My problem is that this avatar must be able to change from the same frontend by attaching a new image and deleted the old one, and I have no idea how to make it do so. I have looked at the documentation of ACF like 60 times and in the end I come to the same viaduct At the moment this is like this
<form>
<div id="img-logo"><?php echo get_avatar( $current_user->ID ); ?></div>
<div id="inputfile">
<input type="file" name="file">
<input type="submit" for="file">
</div>
</form>
I know it's not much, but I do not know how to do it, I tried it with acf_form custom array, but it did not come to fruition either. Can someone help me?