We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4385
    • 372 Posts
    Thanks for the heads up. I don’t actually have the code in production.

    The original files with updated include
    http://files.getdropbox.com/u/949793/DropboxUploader.zip

    External links from my drop box, I could not figure out how to add a new attachment to the forum.

      DropboxUploader -- Upload files to a Dropbox account.
      DIG -- Dynamic Image Generator
      gus -- Google URL Shortener
      makeQR -- Uses google chart api to make QR codes.
      MODxTweeter -- Update your twitter status on publish.
      • 4055
      • 7 Posts
      Is anyone else getting "mkdir() [function.mkdir]: SAFE MODE Restriction in effect." error after you try to submit a file??
        Bret Bouchard
        518 Designs
        http://518designs.com
        • 20413
        • 2,877 Posts
        Cool can’t wait to try this!!
          @hawproductions | http://mrhaw.com/

          Infograph: MODX Advanced Install in 7 steps:
          http://forums.modx.com/thread/96954/infograph-modx-advanced-install-in-7-steps

          Recap: Portland, OR (PDX) MODX CMS Meetup, Oct 6, 2015. US Bancorp Tower
          http://mrhaw.com/modx_portland_oregon_pdx_modx_cms_meetup_oct_2015_us_bancorp_tower
          • 4385
          • 372 Posts
          Dropbox changed domain from www.getdropbox.com to www.dropbox.com, script updated.
          I also attached the file here as well. In case I ever lose my dropbox account.

          Here are some brief instructions on use.


          • Uncompress the contents of DropboxUploader.zip into your snippets directory.
          • Copy the contents of DropboxUploader.snippet.php into a new snippet called DropboxUploader.
          • Create a chunk for the upload form.

          <!-- chunk: dbu_upload -->
          <form method="POST" name="DBU" enctype="multipart/form-data">
          <input type="hidden" value="true" name="submitted" /> 
                  <dl>
                      <dt>File</dt><dd><input type="file" name="file" /></dd>
                      <dd><input type="submit" value="Upload file." /></dd>
                  </dl>
          </form>
          


          Call the snippet uncached in your document.
          [!DropboxUploader? &username=`[email protected]` &password=`pass1234` &tpl=`dbu_upload` &filepath=`MODx`!]






            DropboxUploader -- Upload files to a Dropbox account.
            DIG -- Dynamic Image Generator
            gus -- Google URL Shortener
            makeQR -- Uses google chart api to make QR codes.
            MODxTweeter -- Update your twitter status on publish.
            • 4385
            • 372 Posts
            Quote from: bretbouchard at May 07, 2010, 04:48 PM

            Is anyone else getting "mkdir() [function.mkdir]: SAFE MODE Restriction in effect." error after you try to submit a file??

            Sounds like your server is running with SAFE MODE on.

            You can check by going to Reports > System Info > phpInfo() > View

            I would also check the permissions on the files.
              DropboxUploader -- Upload files to a Dropbox account.
              DIG -- Dynamic Image Generator
              gus -- Google URL Shortener
              makeQR -- Uses google chart api to make QR codes.
              MODxTweeter -- Update your twitter status on publish.
              • 12092
              • 5 Posts
              If you’re getting this error:

              DropboxUploader requires the cURL extension

              Make sure that the cURL extension is installed by running this command (I’m running Ubuntu with PHP 5 on Apache):

              sudo apt-get install curl php5-curl
                • 23430
                • 10 Posts
                This sounds like it could be very useful... Could I just clarify? Is the purpose of this to allow users of the web site to upload files to Dropbox via the web site, or to allow them to access files on Dropbox via the web site rather than logging into Dropbox? Our band web site has a file of absences which I end up having to update and reupload to the Modx each week with changes, and it would be much easier just to use Dropbox instead
                  • 4385
                  • 372 Posts
                  Your first guess is correct. It is for uploading from your MODx site to your Dropbox account.

                  You could use Dropbox the other way around though, you could write a snippet that reads the file from you Dropbox’s public folder.

                  [[getExternalFile]]
                  <?php
                  // getExternalFile
                  $anyfile = file_get_contents('http://dl.dropbox.com/u/949793/states.txt');
                  return $anyfile;
                  ?>
                    DropboxUploader -- Upload files to a Dropbox account.
                    DIG -- Dynamic Image Generator
                    gus -- Google URL Shortener
                    makeQR -- Uses google chart api to make QR codes.
                    MODxTweeter -- Update your twitter status on publish.
                    • 4385
                    • 372 Posts
                    The post is for the Evo version the Revo version is available via Package Management.
                    http://modx.com/extras/package/dropboxuploader
                      DropboxUploader -- Upload files to a Dropbox account.
                      DIG -- Dynamic Image Generator
                      gus -- Google URL Shortener
                      makeQR -- Uses google chart api to make QR codes.
                      MODxTweeter -- Update your twitter status on publish.
                      • 21800
                      • 174 Posts