Title: File Up issues
Last modified: August 30, 2016

---

# File Up issues

 *  Resolved [Travis_98](https://wordpress.org/support/users/travis_98/)
 * (@travis_98)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/file-up-issues/)
 * I love the plugin, just trying to get the upload feature to work. I am testing
   a site out locally with an Instant WP install so that may the problem, but I 
   thought I’d ask regardless.
    When uploading files, a new folder is automatically
   being created that looks very similar to what the path should actually be. So
   for example, the folder name (along side the actual WordPress folder) is this:“
   WordPressInstantWP_4.4.2iwpserverhtdocswordpress”.
 * [https://wordpress.org/plugins/file-away/](https://wordpress.org/plugins/file-away/)

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

 *  Plugin Author [thomstark](https://wordpress.org/support/users/thomstark/)
 * (@thomstark)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/file-up-issues/#post-6511935)
 * Yeah, it doesn’t work on Windows Server, because of the directory demarcation
   difference between Windows Server and a regular server. It’ll work when you make
   the site live though. Eventually I’m going to do a great big redesign of the 
   plugin and this will be addressed in that redesign, but for the time being, this
   is a limitation.
 *  Thread Starter [Travis_98](https://wordpress.org/support/users/travis_98/)
 * (@travis_98)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/file-up-issues/#post-6511937)
 * Thanks for the quick reply! Did I mention I love the plugin?
    Yeah, “live” is
   not really the end game here, I’m building an intranet so everything will remain
   local.
 *  Plugin Author [thomstark](https://wordpress.org/support/users/thomstark/)
 * (@thomstark)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/file-up-issues/#post-6511975)
 * Ah, my bad. Misunderstanding.
 * Try this:
 * open up wp-content/plugins/file-away/lib/cls/class.fileaway_management.php
 * and make the following changes:
 *     ```
       //lines 325-236
       $parents = stripslashes(trim(str_replace('..', '', $_POST['parents']), '/'));
       $newsub = stripslashes(trim(str_replace('..', '', $_POST['newsub']), '/'));
       //replace with
       $parents = trim(str_replace('..', '', $_POST['parents']), '/');
       $newsub = trim(str_replace('..', '', $_POST['newsub']), '/');
   
       //lines 410-411
       $oldpath = stripslashes(trim(str_replace('..', '', $_POST['oldpath']), '/'));
       $newname = stripslashes(str_replace(array('..','/'), '', $_POST['newname']));
       //replace with
       $oldpath = trim(str_replace('..', '', $_POST['oldpath']), '/');
       $newname = str_replace(array('..','/'), '', $_POST['newname']);
   
       //line 417
       $parents = stripslashes($_POST['parents']);
       //replace with
       $parents = $_POST['parents'];
   
       //line 536
       $path = stripslashes($path1.'/'.$path2);
       //replace with
       $path = $path1.'/'.$path2;
   
       //lines 672-673
       $url = stripslashes($_POST['url']);
       $pp = $problemchild ? fileaway_utility::replacefirst(stripslashes($_POST['pp']), $install, '') : stripslashes($_POST['pp']);
       //replace with
       $url = $_POST['url'];
       $pp = $problemchild ? fileaway_utility::replacefirst($_POST['pp'], $install, '') : $_POST['pp'];
   
       //line 803
       if(!is_file("$oldfile")) $oldfile = stripslashes("$oldfile");
       //replace with
       if(!is_file("$oldfile")) $oldfile = "$oldfile";
   
       //line 831
       $file = $rootpath.stripslashes($file);
       //replace with
       $file = $rootpath.$file;
   
       //lines 899-900
       ? fileaway_utility::replacefirst(stripslashes($_POST['destination']), $install, '')
       : stripslashes($_POST['destination']);
       //replace with
       ? fileaway_utility::replacefirst($_POST['destination'], $install, '')
       : $_POST['destination'];
   
       //lines 906-907
       $fro = stripslashes($fro);
       $to[$k] = stripslashes($to[$k]);
       //replace with
       $fro = $fro;
       $to[$k] = $to[$k];
   
       //lines 958-959
       ? fileaway_utility::replacefirst(stripslashes($_POST["destination"]), $install, '')
       : stripslashes($_POST["destination"]);
       //replace with
       ? fileaway_utility::replacefirst($_POST["destination"], $install, '')
       : $_POST["destination"];
   
       //lines 965-966
       $fro = stripslashes($fro);
       $to[$k] = stripslashes($to[$k]);
       //replace with
       $fro = $fro;
       $to[$k] = $to[$k];
   
       //line 1026
       $file = stripslashes($file);
       //replace with
       $file = $file;
   
       //line 1084
       $location = stripslashes($location);
       //replace with
       $location = $location;
       ```
   
 *  Plugin Author [thomstark](https://wordpress.org/support/users/thomstark/)
 * (@thomstark)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/file-up-issues/#post-6511976)
 * Just to be clear, actually replace the line/s above “//replace with” with the
   line/s below “//replace with”.
 *  [interacom](https://wordpress.org/support/users/interacom/)
 * (@interacom)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/file-up-issues/#post-6512066)
 * Hi. I have an issue. After i created directories on server ., created a page 
   withe shortcode , i have this issue
 * Forbidden
 * You don’t have permission to access /new/normative/ on this server.
 * What is going wrong ?
 *  Plugin Author [thomstark](https://wordpress.org/support/users/thomstark/)
 * (@thomstark)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/file-up-issues/#post-6512072)
 * That would be a permissions issue. Check with your web host, I’d recommend.
 *  Thread Starter [Travis_98](https://wordpress.org/support/users/travis_98/)
 * (@travis_98)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/file-up-issues/#post-6512102)
 * Thom, you are da man. Thank you for the edits, the upload process works perfectly!
   
   Any advice on how to even begin to learn this level of coding? I would be starting
   from square one – I would love to be able to dive into the file like you did 
   and tweak it as needed.

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

The topic ‘File Up issues’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/file-away_e3e2e1.svg)
 * [File Away](https://wordpress.org/plugins/file-away/)
 * [Support Threads](https://wordpress.org/support/plugin/file-away/)
 * [Active Topics](https://wordpress.org/support/plugin/file-away/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/file-away/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/file-away/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [Travis_98](https://wordpress.org/support/users/travis_98/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/file-up-issues/#post-6512102)
 * Status: resolved