Home Forums ACF PRO Get URL from ACF Form Upload


Get URL from ACF Form Upload

    • jarvis

    • August 16, 2017 at 8:29 pm

    Hi All,

    I think I’m missing something very obvious and now can’t see for looking!

    I use an ACF Frontend Form, this allows a post to be created and a file to be uploaded.

    I then use add_action('acf/save_post', 'my_save_post'); in my functions file along with $file = $_POST['acf']['field_5947df23c2fd6'];

    This works fine and returns the below (as an example):

    What I’m trying to do is obtain the complete file URL instead, again for example:

    Can anyone kindly point me in the right direction!


    • jarvis

    • August 17, 2017 at 1:59 am

    Managed to solve this – simply needed to change the priority on the add_action from 1 to 20

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

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.