Home › Forums › Backend Issues (wp-admin) › File field type – ACF Edit form file details MIA › Reply To: File field type – ACF Edit form file details MIA
Yes Edit and Add extend the MediaPopup. (EditMediaPopup, SelectMediaPopup)
With different processing, fields, etc. as one would assume when editing versus adding.
Within the ACF extension of mediapopup for editing, the attachment details are populated. This is where the issue is.
wp.media.attachment(frame.acf.get('attachment')) when any folder plugin is used, will return no attachment details. This is due to the folder plugins defaulting to filter attachments to “uploads”, which then does not find the attachment.
I did not intend to sort through the ACF code for editing an attachment. My hopes were that someone had already done so and could assist me to override the extension to return the attachment details.
I have sent in an ACF ticket, hopefully they will know if I can override their extension to do what I need it to do. Which is to get the wp.media.attachment to use the attachment’s folder or look through uploads and its subdiretories.
I have other clients to attend to, this is a very low priority to me. If they need to edit the actual attachment details they can from the media post itself and not the ACF edit form.
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’re reaching out to our multilingual users to ask for help in translating ACF 6.1. Help make sure the latest features are available in your language here: https://t.co/TkEc2Exd6U— Advanced Custom Fields (@wp_acf) May 22, 2023
© 2023 Advanced Custom Fields.