Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author nickboss

    (@nickboss)

    Hi, you are not doing anything wrong. The plugin will not allow to go outside wordpress website directory structure for security reasons. Only one “../” is allowed.

    You can change the directory through a plugin filter in order to overcome this restriction. You have the Free or Pro version (instructions change)?

    Regards

    Nickolas

    Thread Starter claus2750

    (@claus2750)

    Pro

    Plugin Author nickboss

    (@nickboss)

    Here are instructions:

    1. Go to Dashboard / Settings / WordPress File Upload / Hooks and add a new Hook.
    2. Give it any title you want.
    3. Put the following code in the Code box:

    
    if (!function_exists('wfu_before_file_check_handler')) {
    	function wfu_before_file_check_handler($changable_data, $additional_data) {
    		$filepath = "var/www/norklerietsbutik.dk/uploads/";
    		$filename = wfu_basename($changable_data["file_path"]);
    		$changable_data["file_path"] = $filepath.$filename;
    		return $changable_data;
    	}
    	add_filter('wfu_before_file_check', 'wfu_before_file_check_handler', 10, 2); 
    }
    

    4. Change $filepath to the correct path. It must be the absolute path of the folder, not the URL.
    5. Set Status to Active and Save.

    Regards

    Nickolas

    jallen314

    (@jallen314)

    Is it possible to do this with the free version, or only the Pro version?

    Plugin Author nickboss

    (@nickboss)

    You can do it with Free version as well. You just need to put the above code at the end of functions.php file.

    Regards

    Nickolas

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

The topic ‘uploadpath’ is closed to new replies.