Forum Discussion

HuS's avatar
HuS
Helpful | Level 5
4 years ago

Export Dropbox-Content to WordPress with list_folder

Plus plan user here. We consider using the API method list_folder to pick up a large Dropbox folder (thousands of images 100-5000 kb each) to populate the Media Library for a WordPress site. Individual files would cause minimal download traffic, as another service picks up files from there and serves images with a CDN. Transfer from Dropbox to WordPress might happen with WP All Import → Import Images from URLs. For those with good Dropbox API experience – does this sound like something worth trying?

  • kylea's avatar
    kylea
    Icon for Dropbox Staff rankDropbox Staff

    Getting Dropbox files into Wordpress is certainly achievable with the API - there are several community built plugins to Wordpress that allow selection of Dropbox files, see here.  

     

    If your goal is to get thumbnails of media files from Dropbox into WordPress, using get_thumbnail_batch using the output of list_folder may be the most efficient way to download the images.

     

     

    • HuS's avatar
      HuS
      Helpful | Level 5

      Thank you, kylea!
      I wasn't notified that my question got an answer, hence my late reply. I am aware of these WordPress plugins – they, however don't do what we need. The WordPress plugins in this list which make Dropbox available in the Media Library context let you browse Dropbox from within WordPress as an additional image source. 

      We want to automatically (and exclusively) populate our WordPress Media Library with assets stored on Dropbox, so that every published image originally comes from Dropbox. Thumbnails weren't  enough, we need the full-size images. Dropbox would work as a minimal DAM, connected to the WordPress Media Library.

      • Greg-DB's avatar
        Greg-DB
        Icon for Dropbox Staff rankDropbox Staff

        HuS If existing solutions don't address your use case, you can certainly build your own integration. To get the original/full size image data, you could use /2/files/download.