Home › Forums › General Issues › Need to upload a folder of files or a zip (to then be automatically unzipped) › Reply To: Need to upload a folder of files or a zip (to then be automatically unzipped)
Hi @arkid77
I’m afraid this needs heavy modification to work well.
ACF doesn’t have the multi-files upload feature. For something like that, you need to use repeater field instead. But this still means that you need to select the files one by one.
Also, the uploaded fields via ACF will always be registered on the media page unless you delete it after the files are successfully uploaded.
Regarding the zipped file, you can use the acf/save_post action to modify the uploaded file after a post is saved. To unzip the file, kindly check this function: https://codex.wordpress.org/Function_Reference/unzip_file.
I hope this makes sense 🙂
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.