Viewing 2 replies - 1 through 2 (of 2 total)
  • Same issue. Any help would be appreciated.

    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.