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 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)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Custom Upload folder’ is closed to new replies.