Storage for EDD via Box

Plugin Banner

Storage for EDD via Box

by mohammadr3z

Download
Description

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

Key Features

  • Box Integration: Store your digital products securely in Box
  • OAuth2 Authentication: Secure and easy connection to your Box account
  • Secure Download Links: Generates secure links for downloads
  • Easy File Management: Upload files directly to Box through WordPress admin
  • Media Library Integration: Browse and select files from your Box 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 Box App at Box Developer Console with OAuth 2.0 authentication
  2. Set OAuth Redirect URI to: https://your-site.com/wp-admin/admin-post.php?action=edbx_oauth_callback
  3. Go to Downloads > Settings > Extensions > Box Storage
  4. Enter your Client ID and Client Secret
  5. Save settings and click “Connect to Box”

Usage

Browsing and Selecting Files

  1. When creating or editing a download in Easy Digital Downloads
  2. Click the “Browse Box” button next to the file URL field
  3. Browse your Box 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” to use an existing file for your download

Uploading New Files

  1. In the Box browser, click the “Upload” 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 Box prefix
  5. Click the button again to hide the upload form

External services

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

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

  • Service: Box API
  • Used for: Authentication, file browsing, uploading, and generating download links.
  • Data sent: OAuth tokens, file metadata, file content (during upload).
  • URLs:
    • https://api.box.com (API calls)
    • https://upload.box.com (File uploads)
    • https://account.box.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 Box 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 Box’s secure infrastructure.

  1. Upload the plugin files to the /wp-content/plugins/storage-for-edd-via-box directory, or install the plugin through the WordPress plugins screen directly.
  2. Make sure you have Easy Digital Downloads plugin installed and activated.
  3. Activate the plugin through the ‘Plugins’ screen in WordPress.
  4. Navigate to Downloads > Settings > Extensions > Box Storage to configure the plugin.
  1. Admin panel user interface

    Admin panel user interface

  2. File selection from Box storage section

    File selection from Box storage section

  3. File upload to Box storage interface

    File upload to Box storage interface

How secure are the download links?

The plugin generates secure download links. When a customer purchases your product, the plugin handles the authentication with Box to deliver the file securely without exposing your private file permanently.

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 Box files?

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

function customize_box_url_prefix($prefix) {
    return 'edd-myprefix://'; // Change to your preferred prefix
}
add_filter('edbx_url_prefix', 'customize_box_url_prefix');

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

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

1.1.0

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

1.0.5

  • 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 Box browser modal.

1.0.4

  • Use wp_enqueue commands: Replaced inline and in includes/class-media-library.php (admin media library)

1.0.3

  • Added: New “Browse” button next to file inputs for easier file selection.
  • Improved: Modernized file browser UI with a dedicated modal window.
  • Improved: File browser is now context-aware, opening directly to the selected file’s folder.
  • Improved: Browse button is automatically hidden if the plugin is not configured.
  • Improved: Removed legacy “Box Library” tab from the standard WordPress media uploader for a cleaner interface.

1.0.2

  • Added: Native search input type with clear (“X”) icon support for a cleaner UI.
  • Improved: Mobile breadcrumb navigation with path wrapping for long directory names.
  • Improved: Reduced separator spacing in breadcrumbs on mobile devices.
  • Improved: Media library table styling for more consistent file and folder display.
  • Improved: Redesigned folder rows with better icons and refined hover effects.
  • Improved: Enhanced mobile responsiveness for the file browser table.
  • Fixed: Corrected file name and path display order in the media library.
  • Improved: Standardized header row spacing and title font sizes for UI consistency.
  • Improved: Enhanced notice detail styling for better error/success message readability.
  • Improved: More robust handling of file lists with additional data validation.
  • Security: Standardized use of wp_json_encode() for client-side data.
  • Improved: Renamed root folder label from “Root folder” to “Home” for a cleaner and more intuitive navigation experience.

1.0.1

  • Added: Breadcrumb navigation in file browser – click any folder in the path to navigate directly.
  • Improved: Integrated search functionality directly into the breadcrumb navigation bar for a cleaner UI.
  • Improved: Better navigation experience without needing the Back button.
  • Improved: Enhanced styling for search inputs and buttons, including compact padding.
  • Fixed: RTL layout issues for breadcrumbs and navigation buttons.
  • Cleaned: Removed legacy CSS and unused search container elements.

1.0.0

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