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)
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've just released ACF 5.12.3 with a security fix to prevent arbitrary file uploads to forms with ACF fields.— Advanced Custom Fields (@wp_acf) July 14, 2022
Now that we've released this update, we recommend updating your sites as soon as possible.
© 2022 Advanced Custom Fields.