We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4385
    • 372 Posts
    I started a Dropbox upload snippet. Someone else created the class. I just copied and pasted into a snippet.
    (Dropbox is an online file sync and sharing service. You can get a free account, by using the referral link below.)

    It is a little rough around the edges. Can someone check it out and make it more user friendly?
    I do not have a demo online, but have tested it on my local machine and it seems to work well.

    [!DropboxUploader? &tpl=`dbu_upload` &username=`[email protected]` &password=`sd344FG21` !]

    I have to sample chunks that allow you to upload file to a Dropbox account.
    It probably needs a way to check or filter file types and sizes.
    The free accounts are limited to 2GB.

    If you find the snippet helpful, please use the referral link.
    https://www.getdropbox.com/referrals/NTk0OTc5Mzk
      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.
      • 33337
      • 3,975 Posts
      Where is the snippet?
        Zaigham R - MODX Professional | Skype | Email | Twitter

        Digging the interwebs for #MODX gems and bringing it to you. modx.link
        • 4385
        • 372 Posts
        I had to pull it off and re-attach a new zip file. I had left my password in one of the files while I was testing. grin
          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
          I just found out if you sign up using a referral link you get an extra 250MB added to your 2GB!

          *Disclaimer: I am not affiliated with Dropbox, other than a user of their free service. In fact I just joined this week.

          I thought it might be helpful to get files uploaded directly to the client.
            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.
            • 4310
            • 2,310 Posts
            Thanks for the snippet & signup link.
            I got the extra 250 MB when I signed up wink
            I’m going to install and test shortly.
            A couple of ideas for new features, I have some specific requirements for a site I’m about to start on.
            1. Allowed file type array e.g. .pdf, .jpg etc.
            2. Retrieve web user info from session variables and then ...
            3. Email confirmation to account holder when new file uploaded with details of which web user uploaded it
            Let me know what you think, and if you want any help developing it further.
              • 4310
              • 2,310 Posts
              Installed and worked perfectly.
              Thanks Brian grin
                • 4385
                • 372 Posts
                I am glad it worked for you David. BTW it does have an RSS feed for the account so can get notices of system activity.

                Whenever I see a bit of php code I want to try adding it to MODx to give us all more tools to use in our sites.

                I really don’t have a particular use for the snippet yet. I have been reading up on what people are using Dropbox. I read a small office is using it to keep shared pdf’s up-to-date. Or a poor man’s subversion.

                I have one idea for one of my non-computer savvy clients. Have MODx generate a text file and upload it their Dropbox account, and on their computer have their local Dropbox folder be "watched" and print every file in the folder then move it to the trash. Kinda like a MODx to FAX gateway.
                  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.
                  • 4310
                  • 2,310 Posts
                  Using it on a Mac with growl means I get instant notification. laugh
                  For a non Mac client, with multiple PC’s I’m thinking an email to tell them a customer has uploaded a pdf will work.
                  I should be starting on that next week so I’ll post any modifications I make.
                    • 6726
                    • 7,075 Posts
                    Hey kudos bwente, I am a dropbox user and will definitely have a use for this at some point grin
                      .: COO - Commerce Guys - Community Driven Innovation :.


                      MODx est l'outil id
                      • 4310
                      • 2,310 Posts
                      Hey Brian, just to let you know I have it working successfully on a clients site. laugh
                      Had to upgrade the core code as Dropbox seem to have changed something! >:(