Title: uploadpath
Last modified: February 17, 2017

---

# uploadpath

 *  [claus2750](https://wordpress.org/support/users/claus2750/)
 * (@claus2750)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/uploadpath/)
 * I have my wp-content at [https://norklerietsbutik.dk/login575859/wp-content](https://norklerietsbutik.dk/login575859/wp-content)
   
   How do i set the uploadpath to [https://norklerietsbutik.dk/uploads](https://norklerietsbutik.dk/uploads)
   I have tried uploadpath=../../uploads/ but it dont work What do i do wrong ?

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

 *  Plugin Author [nickboss](https://wordpress.org/support/users/nickboss/)
 * (@nickboss)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/uploadpath/#post-8816731)
 * 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](https://wordpress.org/support/users/claus2750/)
 * (@claus2750)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/uploadpath/#post-8817847)
 * Pro
 *  Plugin Author [nickboss](https://wordpress.org/support/users/nickboss/)
 * (@nickboss)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/uploadpath/#post-8819355)
 * 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](https://wordpress.org/support/users/jallen314/)
 * (@jallen314)
 * [9 years ago](https://wordpress.org/support/topic/uploadpath/#post-8910378)
 * Is it possible to do this with the free version, or only the Pro version?
 *  Plugin Author [nickboss](https://wordpress.org/support/users/nickboss/)
 * (@nickboss)
 * [9 years ago](https://wordpress.org/support/topic/uploadpath/#post-8911140)
 * 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.

 * ![](https://ps.w.org/wp-file-upload/assets/icon-256x256.png?rev=3252590)
 * [Iptanus File Upload](https://wordpress.org/plugins/wp-file-upload/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-file-upload/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-file-upload/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-file-upload/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-file-upload/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-file-upload/reviews/)

## Tags

 * [uploadpath](https://wordpress.org/support/topic-tag/uploadpath/)

 * 5 replies
 * 3 participants
 * Last reply from: [nickboss](https://wordpress.org/support/users/nickboss/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/uploadpath/#post-8911140)
 * Status: not resolved