[WordPress] 外掛分享: SSU – WordPress Amazon S3 & Wasabi Smart File Uploads Plugin

首頁外掛目錄 › SSU – WordPress Amazon S3 & Wasabi Smart File Uploads Plugin
WordPress 外掛 SSU – WordPress Amazon S3 & Wasabi Smart File Uploads Plugin 的封面圖片
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
300+
安裝啟用
★★★★
4.5/5 分(8 則評價)
731 天前
最後更新
問題解決
WordPress 4.9+ PHP 5.6+ v1.5.1 上架:2020-02-05

內容簡介

能夠直接使用自定義上傳來將本地文件直接上傳到您的 Amazon S3 & Wasabi 存儲桶中。不需要再先將文件上傳到服務器上。

Amazon S3 & Wasabi Smart File Uploads 插件提供以下功能:

一次性直接上傳多個文件到 Amazon S3 & Wasabi

Amazon S3 & Wasabi Smart File Uploads 使用智能的方式,可以一次性從您的本地上傳多個文件到 S3 存儲桶,而無需佔用服務器存儲空間。而且,由於我們支持每個上傳文件高達 5 GB,所以您不必擔心「超過最大上傳文件大小」問題。

您可以作為管理員上傳文件,也可以按照 FAQ 部分的說明授予其他用戶上傳文件的權限。

配置和列出 Amazon S3 & Wasabi 存儲桶中的文件

我們的插件提供一個友好的 UI 來查看 WordPress 管理面板中所有您的 Amazon S3 和 Wasabi 目錄和文件。

您可以自己配置 Amazon S3 存儲桶,並選擇要上傳到哪裡的文件。還有一個選項可以顯示定義的存儲桶中的其他目錄。

您可以點擊「複製文件 URL」按鈕來選擇並複製您的 S3 文件 URL。

從 WooCommerce Dashboard 和 Dokan Dashboard 上傳文件

我們的插件與 WooCommerce 和 Dokan 插件集成,允許用戶從產品頁面上傳文件,此外還可在我們的設置頁面中進行上傳。

從前端上傳文件

使用以下短碼允許用戶直接從前端網站將文件上傳到 Amazon S3 或 Wasabi 存儲桶。

[ssu_upload button="Upload to S3"]

使用這些鉤子,允許前端用戶上傳公共文件,顯示已上傳的 S3 URL 或將其文件上傳到 S3 中的特定文件夾。

上傳重複文件

默認情況下,當您將具有相同文件名稱的文件上傳到 Amazon S3 時,它將覆蓋現有文件。當您允許多個用戶上傳文件時,此行為可能會導致數據丟失。

我們的 SSU 插件通過對重複文件添加後綴來幫助您處理此問題。

如果您想保持 Amazon S3 的默認行為,只需在您的(子)主題 functions.php 文件中添加以下自定義代碼:

add_filter( 'ssu_enable_unique_file_name', '__return_false' );

管理 Wasabi 和 Amazon S3 文件在 WordPress 媒體庫中

您不僅可以添加新文件上傳,還可以將現有的 S3 文件添加到 WordPress 媒體庫中。

通過我們的插件上傳的所有文件默認都是私有的。這意味著即使您將存儲桶設為公共,也沒有人可以直接訪問這些文件。

這些 S3 文件可以像其他 WordPress 媒體文件一樣進行管理。例如,在編輯任何頁面和文章時,您可以通過添加媒體選擇並插入它們到內容中。

從 WordPress 媒體庫中刪除 S3 文件

默認情況下,從媒體庫中刪除文件的副本不會影響其在 S3 存儲桶上的原始版本。要從 WordPress 媒體庫中刪除 S3 文件,您可以在 wp-config.php 中定義以下常數:

define( ‘SSU_WP_REMOVE’, true );

使用 Smart File Uploads 插件使 S3 文件公開

出於安全原因,我們的插件通過默認設置使所有通過其上傳的文件都是私有的。這意味著沒有人,甚至管理員,能夠直接訪問這些文件。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.5.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「SSU – WordPress Amazon S3 & Wasabi Smart File Uploads Plugin」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Amazon S3 – Wasabi Smart File Uploads plugin allows you to upload local files directly to your Amazon S3 & Wasabi bucket using a custom file upload. You don’t have to upload files to your server first anymore.
Amazon S3 – Wasabi Smart File Uploads plugin offers the following features:
Upload multiple files directly to Amazon S3 & Wasabi at once
Amazon S3 – Wasabi Smart File Uploads uses a smart way to upload multiple files directly from your local to S3 bucket at once without occupying server storage. Also, you don’t have to worry about “exceeding the maximum upload file size” issue since we support up to 5GB for each upload file.
You can upload files as an admin or grant other users permission to upload files to your bucket as per our instructions in the FAQ section.
Configure & list files on your Amazon S3 & Wasabi Bucket
Our plugin provides a friendly UI allowing you to view all your Amazon S3 and Wasabi directories and files within the WordPress admin dashboard.
You are able to configure your own Amazon S3 bucket and choose where to upload your files to. There is an option to display other directories in your defined bucket as well.
You can select and copy your S3 file URL by clicking the “Copy File URL” button.
Upload files from WooCommerce Dashboard & Dokan Dashboard
Our plugin integrates with WooCommerce and Dokan plugins to allow users to upload files from the product pages, in addition to our settings page.
Upload files from Frontend
Use the following shortcode to allow users to upload files on the frontend website to Amazon S3 or Wasabi bucket directly.
[ssu_upload button="Upload to S3"]

Use these hooks to allow front-end users to upload public files, show uploaded S3 URL or upload their files to a specific folder in S3.
Upload duplicate files
By default, when you upload files with the same name to Amazon S3, it will overwrite the existing ones. This behavior might cause data loss especially when you allow file uploads by multiple users.
Our SSU plugin helps you handle the issue by adding suffixes to duplicate files.
In case you want to keep the default behavior of Amazon S3, simply add the following custom code to your (child) theme functions.php file:
add_filter( 'ssu_enable_unique_file_name', '__return_false' );

Manage Wasabi & Amazon S3 files within WordPress Media Library
You can add not only new file uploads but also existing S3 files to WordPress Media Library.
All files uploaded via our plugin are private by default. It means no one can access these files directly even when you set your bucket public.
These S3 files can be managed just like other WordPress media files. For example, you can select and insert them into content through Add Media while editing any page and post.
Delete S3 files from WordPress Media Library
By default, removing the file’s copy in the Media Library won’t affect its original version on the S3 bucket. To remove S3 files from WordPress Media Library, you can define the following constant in your wp-config.php:
define( ‘SSU_WP_REMOVE’, true );

Make S3 files public with Smart File Uploads Plugin
For security reasons, all file uploads via our plugin are set private by default. That means no one, even admins, can access the files directly. To make a file public, simply select the option when uploading a file, or choose a file and click the “Make File Public” button.
Protect WooCommerce Products hosted on Wasabi & Amazon S3
Simply insert a raw Wasabi or Amazon S3 URL for files hosted on a private bucket into WooCommerce Product File URL. Our plugin will automatically generate an expiring signed URL for users to download the file after purchase.

If you need any help with the plugin or want to request new features, feel free to contact us through this form or drop us an email at [email protected]

Please check out this guide on how to upload files directly to Amazon S3 bucket within WordPress admin.

延伸相關外掛

文章
Filter
Mastodon