Home › Forums › Backend Issues (wp-admin) › upload file in custom folder depend user field › Reply To: upload file in custom folder depend user field
A big issue is that you cannot specify multiple locations to upload a file to. ! file can only be uploaded to 1 location. You will only change the upload location to the last user in the loop.
And yes. The file is uploaded in AJAX and will be uploaded before the value of the ACF field is updated.
In this case you would need to use an acf/save_post filter, get the users and then duplicate the uploaded image for each user….. I do not know how you would do this duplication.
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.