Home › Forums › Feature Requests › Uploaded Files Location › Reply To: Uploaded Files Location
I had the same issue as @dtx211. I solved the problem by passing an array with the filters:
add_filter('acf/upload_prefilter/name=my_acf_upload_fieldname', array( $this, 'field_name_upload_prefilter' ) );
AND
add_filter('upload_dir', array( $this, 'field_name_upload_dir' ) );
Also ensure, that the upload directory has the right access rights and maybe already exists.
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.