Home › Forums › Front-end Issues › Front End User Profile Edit – Image Upload › Reply To: Front End User Profile Edit – Image Upload
Yea that doesn’t help me because I really want to format the layout of the fields. If I just display the fields like that I can’t control anything and it just spits them out 1 by 1.
So far, I’ve managed to write this up: which works on the front end nicely… but it does NOT save the image to the user’s profile.
<?php
$field_key = "field_56a256d53721e";
$field = get_field_object($field_key, 'user_'.$current_user->ID);
if( $field )
{
echo '<input type="file" id="acf-' . $field['key'] . '" name="acf[' . $field['key'] . ']">';
}
?>
Do you have maybe something more complete that could help me with this issue?
Here is a screenshot of how I have my file ACF field set up:
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.