Home › Forums › Backend Issues (wp-admin) › Change file upload path for one specific field. › Reply To: Change file upload path for one specific field.
I creating a form using various ACF fields.
For the “file” field, I want to customize the folder location for each of the file fields.
I have 3 scenarios:
Simple file upload field with name file1 – should be located to wp-content/uploads/simple-files
File field with the group field – should be located to wp-content/uploads/groups
Field Structure: Group 1 -> File 1 AND Field Path: uploads/groups/group1/file1
Field Structure: Group 1 -> File 2 AND Field Path: uploads/groups/group1/file2
File field with group field and the repeater field – should be located to wp-content/uploads/group-repeat
Field Structure: Group 1-> Repeater -> File 1 AND Field Path: uploads/groups/group-repeat1/repeater1/file1
Field Structure: Group 1-> Repeater -> File 2 AND Field Path: uploads/groups/group-repeat1/repeater1/file2
Please help he understand how I can achieve this using ACF hooks.
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.