Storage for Woo via Dropbox

Plugin Banner

Storage for Woo via Dropbox

by mohammadr3z

Download
Description

Storage for WooCommerce via Dropbox is a powerful extension for WooCommerce that allows you to store and deliver your digital products using Dropbox cloud storage. This plugin provides seamless integration with Dropbox’s API, featuring OAuth2 authentication and secure temporary download links.

Key Features

  • Dropbox Integration: Store your digital products securely in Dropbox
  • OAuth2 Authentication: Secure and easy connection to your Dropbox account
  • Temporary Download Links: Generates secure 4-hour temporary links for downloads
  • Easy File Management: Upload files directly to Dropbox through WordPress admin
  • Media Library Integration: Browse and select files from your Dropbox within WordPress
  • Folder Support: Navigate and organize files in folders
  • Security First: Built with WordPress security best practices
  • Developer Friendly: Clean, well-documented code with hooks and filters

Configuration

  1. Create a Dropbox App at Dropbox Developer Console
  2. Set OAuth Redirect URI to: https://your-site.com/wcdbx-oauth-callback/
  3. Go to WooCommerce > Settings > Dropbox Storage
  4. Enter your App Key and App Secret
  5. Save settings and click “Connect to Dropbox”

Usage

Browsing and Selecting Files

  1. When creating or editing a downloadable product in WooCommerce
  2. Click “Browse Dropbox” button next to the file URL field
  3. Browse your Dropbox storage using the folder navigation
  4. Use the breadcrumb navigation bar to quickly jump to parent folders
  5. Use the search box in the header to filter files by name
  6. Click “Select File” to use an existing file for your download

Uploading New Files

  1. In the Dropbox browser, click the “Upload File” button in the header row
  2. The upload form will appear above the file list
  3. Choose your file and click “Upload”
  4. After a successful upload, the file URL will be automatically set with the Dropbox prefix
  5. Click the button again to hide the upload form

External services

This plugin connects to Dropbox API to manage files, create download links, and handle authentication.

It sends the necessary authentication tokens and file requests to Dropbox servers. This happens when you browse your Dropbox files in the dashboard, upload files, or when a customer downloads a file.

  • Service: Dropbox API
  • Used for: Authentication, file browsing, uploading, and generating download links.
  • Data sent: OAuth tokens, file metadata, file content (during upload).
  • URLs:
    • https://api.dropboxapi.com (API calls)
    • https://content.dropboxapi.com (File transfers)
    • https://www.dropbox.com (Authentication)
  • Legal: Terms of Service, Privacy Policy

Support

For support and bug reports, please use the WordPress.org plugin support forum.

If you find this plugin helpful, please consider leaving a review on WordPress.org.

Other Storage Providers

Looking for a different storage provider? Check out our other plugins:

Privacy Policy

This plugin requires authorization to access your Dropbox account for file storage and retrieval. It does not collect or store any personal data beyond the OAuth tokens needed to maintain the connection. All file storage and delivery is handled through Dropbox’s secure infrastructure.

  1. Upload the plugin files to the /wp-content/plugins/storage-for-woo-via-dropbox directory, or install the plugin through the WordPress plugins screen directly.
  2. Make sure you have WooCommerce plugin installed and activated.
  3. Run composer install in the plugin directory if installing from source (not needed for release versions).
  4. Activate the plugin through the ‘Plugins’ screen in WordPress.
  5. Navigate to WooCommerce > Settings > Dropbox Storage to configure the plugin.
  1. Browse button for link selection

    Browse button for link selection

  2. Library popup display

    Library popup display

  3. Upload form display

    Upload form display

How secure are the download links?

The plugin generates temporary download links that are valid for 4 hours. These links are generated on-demand when a customer purchases your product, ensuring that each download session gets a fresh, time-limited URL.

Why 4 hours? Can I change the link duration?

The 4-hour duration is set by Dropbox and cannot be changed. This is different from S3 where you can customize the expiry time. The 4-hour window is actually beneficial for larger files as it gives customers more time to complete their downloads.

What file types are supported for upload?

The plugin supports safe file types including:
* Archives: ZIP, RAR, 7Z, TAR, GZ
* Documents: PDF, DOC, DOCX, TXT, RTF, XLS, XLSX, CSV, PPT, PPTX
* Images: JPG, JPEG, PNG, GIF, WEBP
* Audio: MP3, WAV, OGG, FLAC, M4A
* Video: MP4, AVI, MOV, WMV, FLV, WEBM
* E-books: EPUB, MOBI, AZW, AZW3
* Web files: CSS, JS, JSON, XML

Dangerous file types (executables, scripts) are automatically blocked for security.

Can I customize the URL prefix for Dropbox files?

Yes, developers can customize the URL prefix using the wcdbx_url_prefix filter. Add this code to your theme’s functions.php:

function customize_dropbox_url_prefix($prefix) {
    return 'wc-myprefix://'; // Change to your preferred prefix
}
add_filter('wcdbx_url_prefix', 'customize_dropbox_url_prefix');

Can I customize the allowed file types (MIME types)?

Yes, developers can customize the allowed MIME types using the wcdbx_allowed_mime_types filter.

1.1.0

  • Major Refactor: Replaced legacy iframe browser with modern AJAX implementation for improved performance.

1.0.3

  • Improved: UI styles and enhanced layout consistency for better harmony.
  • Improved: Comprehensive code improvements and stability optimizations.
  • Added: Skeleton loader with shimmer animation for better UX while loading Dropbox browser modal.

1.0.2

  • Improved WordPress coding standards compliance
  • Added proper PHPCS annotations for nonce verification and input sanitization

1.0.1

  • Improved file browser to open directly in the folder of the existing file
  • Fixed issue with remembering last folder location
  • Use wp_enqueue commands: Replaced inline and in includes/class-media-library.php (admin media library)

1.0.0

  • Initial release
  • Dropbox OAuth2 integration
  • Temporary download link generation
  • Media library integration
  • File upload functionality
  • Admin settings interface
  • Security enhancements and validation
  • Internationalization support
Back to top