• Resolved sven88074

    (@sven88074)


    Hi I try to use the following code snippet but the files I upload are always in the standard media folder.

    Is there a way to enable a log or something so that I could check if the code from below is working?

    /**
    
     * Define a specific directory for files uploaded through the File Upload addon.
    
     *
    
     * @link  https://wpforms.com/developers/how-to-define-a-specific-directory-for-file-uploads/
    
     */
    
     functionwpf_dev_upload_root( $path) {
    
        //Define a specific directory here
    
        $path= '/home/mysitedomain/public_html/custom-dir'
    
        return$path;
    
    }
    
    add_filter( 'wpforms_upload_root', 'wpf_dev_upload_root', 10, 1 );

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter sven88074

    (@sven88074)

    Figured it out ??
    there was a . missing in the folder structure. Works great

    Plugin Support Ralden Souza

    (@rsouzaam)

    Hi @sven88074,

    I’m glad to hear you got that sorted, and thank you for taking the time to let us know.

    It looks like you’ve marked this post as resolved. If you’d like more help with using WPForms Lite, please feel free to reach out.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom Upload folder’ is closed to new replies.