Home › Forums › Front-end Issues › Front-end form with file / gallery uploaders › Reply To: Front-end form with file / gallery uploaders
I’ve disabled all of the JavaScript I was including in my functions.php file so now I’m not getting any errors on page load and it looks like the scripts are getting added properly when viewing the page source.
However, when I click the “add file” button for my uploader, I get an error in my JavaScript console:
Uncaught TypeError: Cannot read property 'post_id' of undefined | input.php:812
I checked that $post->ID is giving me the post ID, so that’s not the issue. Looking into it further.
The Gallery field however, does work, but I need to do this for files, not images.
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.