Linux 软件免费装
Banner图

Storage for EDD via S3-Compatible

开发者
mohammadr3z
更新时间 2025年12月2日 15:15
PHP版本: 7.4 及以上
WordPress版本: 6.8
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

storage s3 edd easy-digital-downloads s3-compatible

下载

1.0.7.1 1.1.1 1.0.7.2 1.0.8 1.0.9 1.0.7 1.1.0

详情介绍:

Storage for EDD via S3-Compatible is a powerful extension for Easy Digital Downloads that allows you to store and deliver your digital products using S3-compatible storage services. This plugin provides seamless integration with various S3-compatible storage providers including MinIO, DigitalOcean Spaces, Linode Object Storage, and many others. Key Features

安装:

  1. Upload the plugin files to the /wp-content/plugins/storage-for-edd-via-s3-compatible directory, or install the plugin through the WordPress plugins screen directly.
  2. Make sure you have Easy Digital Downloads 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 Downloads > Settings > Extensions > S3 Storage to configure the plugin.

屏幕截图:

  • File selection from S3 storage section
  • File upload to S3 storage interface

常见问题:

Which S3-compatible services are supported?

This plugin works with any S3-compatible storage service including:

  • Amazon S3
  • DigitalOcean Spaces
  • Linode Object Storage
  • Wasabi
  • Backblaze B2 (with S3-compatible API)
  • Cloudflare R2
  • MinIO
  • Storj
  • ArvanCloud
  • Hetzner Object Storage
  • And many others

How secure are the download links?

The plugin generates presigned URLs with configurable expiration times (default 3 minutes). These URLs are temporary and cannot be shared or reused after expiration, ensuring your digital products remain secure. For enhanced security, the plugin enforces timeout limits:

  • Minimum expiry time: 1 minute (ensures links work for legitimate downloads)
  • Maximum expiry time: 60 minutes (prevents long-term unauthorized access)
  • Even if you try to set values outside this range, the plugin automatically adjusts them to stay within safe limits This prevents abuse scenarios such as:
  • Links that expire too quickly (0 minutes)
  • Links that remain valid for days or weeks
  • Unauthorized long-term access to your digital products

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.

How does the plugin validate uploaded files?

The plugin implements multiple layers of security validation:

  • Extension Validation: Checks file extensions against a whitelist of allowed types
  • MIME Type Validation: Validates the actual file content type (not just the extension) to prevent file type spoofing
  • Content-Type Matching: Ensures the file extension matches the actual MIME type to detect malicious files with fake extensions
  • Size Validation: Enforces WordPress upload size limits
  • Nonce Verification: Protects against CSRF attacks
This multi-layered approach prevents attackers from uploading malicious files disguised with safe extensions (e.g., a PHP file renamed to .jpg).

Can I browse existing files in my S3 storage?

Yes, the plugin includes an S3 Library feature that allows you to browse and select existing files from your S3 bucket directly within the WordPress admin interface.

Can I customize the URL prefix for S3 files?

Yes, developers can customize the URL prefix using the s3cs_edd_url_prefix filter. Add this code to your theme's functions.php: function customize_s3_url_prefix($prefix) { return 'edd-customprefix://'; // Change to your preferred prefix } add_filter('s3cs_edd_url_prefix', 'customize_s3_url_prefix');

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

Yes, developers can customize the allowed MIME types using the s3cs_edd_allowed_mime_types filter. Add this code to your theme's functions.php: ` function customize_allowed_mime_types($mime_types) { // Add custom MIME types $mime_types[] = 'application/x-rar'; // Add RAR support $mime_types[] = 'video/x-matroska'; // Add MKV video support // Or remove specific MIME types $mime_types = array_diff($mime_types, array('video/x-flv')); // Remove FLV return $mime_types; } add_filter('s3cs_edd_allowed_mime_types', 'customize_allowed_mime_types'); `

更新日志:

1.1.1 1.1.0 1.0.9 1.0.8 1.0.7 1.0.6 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0