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!
🚨 The 2023 ACF Annual Survey closes tomorrow! This is your last chance to complete the survey and help guide the evolution of ACF. https://t.co/0cgr9ZFOJ5— Advanced Custom Fields (@wp_acf) May 18, 2023
© 2023 Advanced Custom Fields.