Title: dir attribute not working
Last modified: August 20, 2016

---

# dir attribute not working

 *  [WebDeveloperMax](https://wordpress.org/support/users/webdevelopermax/)
 * (@webdevelopermax)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/dir-attribute-not-working/)
 * The dir attribute in the shortcode doesn’t seem to working. I’ve tried it with
   the slash(/) before and after the path with no avail. Here is an example of what
   I’m trying.
 * [rad-dropbox dir=”/Pictures/Skiing” button=”Upload to Skiing!”]
 * Thanks!
 * [http://wordpress.org/extend/plugins/rad-dropbox-uploader/](http://wordpress.org/extend/plugins/rad-dropbox-uploader/)

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

 *  [tmorrison3](https://wordpress.org/support/users/tmorrison3/)
 * (@tmorrison3)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/dir-attribute-not-working/#post-3620922)
 * Same issue. Any help would be appreciated.
 *  [thfcme@gmail.com](https://wordpress.org/support/users/thfcmegmailcom/)
 * (@thfcmegmailcom)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/dir-attribute-not-working/#post-3620954)
 * This is how I fixed the problem.
 * They have a class called dropbox.class.php
 * I added the following:
 * protected $newpath; (after line 4 protected $password;)
 * $newpath = $_POST[‘dest’]; (after line 148 $uploader = new Drop…)
 * Change
    $uploader->upload($tmpFile, $directory);
 * to
 * $uploader->upload($tmpFile, $directory . $newpath);
 * I couldn’t find where the shortcode directory was captured, so I made a new reference
   called $newpath, and that is sent to dropbox. The $newpath ADDS to the default
   directory you specified in the settings. So in default if you have /MyDrive and
   in your shortcode you have /Test1. It’ll upload to /MyDrive/Test1
 * Use at your own risk 🙂

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

The topic ‘dir attribute not working’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/rad-dropbox-uploader.svg)
 * [RAD Dropbox Uploader](https://wordpress.org/plugins/rad-dropbox-uploader/)
 * [Support Threads](https://wordpress.org/support/plugin/rad-dropbox-uploader/)
 * [Active Topics](https://wordpress.org/support/plugin/rad-dropbox-uploader/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/rad-dropbox-uploader/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/rad-dropbox-uploader/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [thfcme@gmail.com](https://wordpress.org/support/users/thfcmegmailcom/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/dir-attribute-not-working/#post-3620954)
 * Status: not resolved