• Resolved amytrecgb

    (@amytrecgb)


    I have a form that is the front end for a Pod submission. This form has the change_upload_path filter applied to it to save any documents that are uploaded using this form to a specific upload folder. The file is uploading to the correct folder however the file is not being recorded in the wp_posts table.

    The form is also updating a pod via the Pods add on (the pods data is stored in a separate table) and this is working correctly, I just seem to be missing the actual file information in the posts table.

    If the change_upload_path function is not used, the file data is saved into the posts table correctly.
    Here is a Gist of the function that is being used to change the upload direction:
    https://gist.github.com/TRECGBAmy/b19fb83ce68e851cb88294667258ee40`

    I have been in touch with Gravity Forms support and they have advised that
    ‘Out of the box the standard File Upload field does not add any info to the wp_posts table.’

    I’m stumped as to how to get the file name to record correctly either in a Pods table or in the Posts table. Is there a way to save the sanitized filename into the Pods table directly from the Pods Add on for Gravity forms?

    The page I need help with: [log in to see the link]

  • The topic ‘Saving Sanitized Filename from Gravity Form to Pods Table’ is closed to new replies.