Custom Upload folder |

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


 functionwpf_dev_upload_root( $path) {

    //Define a specific directory here

    $path= '/home/mysitedomain/public_html/custom-dir'



add_filter( 'wpforms_upload_root', 'wpf_dev_upload_root', 10, 1 );

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


This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer