Title: Custom Upload folder
Last modified: September 12, 2023

---

# Custom Upload folder

 *  Resolved [sven88074](https://wordpress.org/support/users/sven88074/)
 * (@sven88074)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/custom-upload-folder-9/)
 * 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?
 *     ```wp-block-code
       /**
   
        * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcustom-upload-folder-9%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [sven88074](https://wordpress.org/support/users/sven88074/)
 * (@sven88074)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/custom-upload-folder-9/#post-17046659)
 * Figured it out 🙂
   there was a . missing in the folder structure. Works great
 *  Plugin Support [Ralden Souza](https://wordpress.org/support/users/rsouzaam/)
 * (@rsouzaam)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/custom-upload-folder-9/#post-17051758)
 * Hi [@sven88074](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/wpforms-lite/assets/icon.svg?rev=3254748)
 * [WPForms - Easy Form Builder for WordPress - Contact Forms, Payment Forms, Surveys, & More](https://wordpress.org/plugins/wpforms-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpforms-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpforms-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/wpforms-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpforms-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpforms-lite/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Ralden Souza](https://wordpress.org/support/users/rsouzaam/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/custom-upload-folder-9/#post-17051758)
 * Status: resolved