Home › Forums › General Issues › How to show ACF fields on WooCommerce Checkout page › Reply To: How to show ACF fields on WooCommerce Checkout page
Accessing the original file path in the user’s computer is not possible, either through JavaScript or PHP’s $_POST, because it would pose an invasion to the user’s privacy.
You can only access the file’s name and a few other properties after it already has been uploaded, using the $_FILES superglobal on your PHP script.
You then have to complete the upload process by moving/renaming the uploaded file (which is stored in a temporary folder) into your chosen directory, otherwise it will be automatically deleted by PHP at the end of the script.
For more:
You can also use a built-in WordPress function:
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.