內容簡介
在媒體庫的「列表模式」與「方格模式」都新增了「下載 (Download)」選項。
選擇你想要匯出的附加檔案,點擊按鈕,系統就會建立這些附加檔案的 Zip 檔案供你下載。
在「列表模式」選擇下載
在「列表模式」中,「下載」選項會出現在「批次動作 (Bulk Actions)」捲軸清單中。選擇要匯出的附加檔案,勾選相應的核取方塊,選擇「下載」,再點擊「套用」。
在「方格模式」選擇下載
在「方格模式」中,先按下「批次選取 (Bulk Select)」按鈕。接著點擊您要下載的附件,再按下「下載」按鈕。
下載選項
在建立 Zip 檔案之前,你可以得知 a) 有多少個檔案會被下載,以及 b) 未壓縮的檔案有多大。
預設情況下,系統讓您選擇:
是否包括或排除影像的中間大小 (image intermediate sizes)。
包括你上傳的資料夾架構(例如:年/月)在你的下載中,或將所有檔案下載到一個單獨的資料夾中。
您可以在「設定」>「媒體」中的外掛設定中設置要下載的最大(未壓縮)檔案大小。
預設情況下,Zip 檔案會在 1 〜 2 小時後自動刪除,或者您可以自行刪除它們。
如果您希望讓下載檔案對其他人無法存取,您可以在「設定」>「媒體」中使用「設定安全下載 (Make downloads secure)」選項。
這會在存放下載 ZIP 檔案的資料夾中創建一個 .htaccess 檔案,以防止直接存取。
您還可以選擇加密和密碼保護 ZIP 檔案。但是,請注意,大多數情況下,標準的 Windows Zip 工具都無法打開這些檔案。
您需要使用類似 7-Zip 這樣的工具。
但是,除非您還有某種方式可防止直接存取「上傳檔案」資料夾中的附件本身,否則使用此功能或 .htaccess 等功能將無效。
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
A ‘Download’ option is added to both List and Grid modes in the Media Library.
Choose the attachments you want to export, click the button, and a zip file of those attachments is created that you can then download.
Selecting for download in List mode
In List mode the ‘Download’ option appears in the Bulk Actions dropdown. Select the attachments by checking the checkboxes, choose ‘Download’ in the dropdown, then click ‘Apply’.
Selecting for download in Grid mode
In Grid mode, first click the ‘Bulk Select’ button. Then click on the attachments you want to download and hit the ‘Download’ button.
Download options
Before the zip file is created, you’ll see a) how many files will be downloaded, and b) how big the uncompressed files are.
By default, you are also given the option to:
Include or exclude image intermediate sizes.
Include in your download the folder structure you use in your uploads folder (e.g. year/month) or have all files downloaded in a single folder.
You can set a maximum (uncompressed) file size to be downloaded in the plugin settings, found in Settings > Media.
By default, zip files are automatically removed in 1 – 2 hours, or you can delete them yourself.
If you want to keep the download files inaccessible to others, you can use the ‘Make downloads secure’ option in Settings > Media.
This creates a .htaccess file in the folder where the download zip files are kept, preventing direct access.
You can also choose to encrypt and password-protect the zip files. However please note that in most cases the standard Windows zip facility
will not be able to open the files – you will need to use something like 7-Zip instead.
However there’s no point in using this feature or the .htaccess one unless you also have some means of preventing direct access to the attachments
themselves in the Uploads folder.
1.3.9
Release date: 7 July 2024
Maintenance: Added FAQ on Google Chrome blocking downloads.
1.3.8
Release date: 10 December 2023
Enhancement: Add filters to allow management of which images sizes to include in download.
Enhancement: Modify popup to allow download directly without navigation to all downloads screen.
1.3.7
Release date: 6 July 2023
Maintenance: Update Freemius SDK
1.3.6
Release date: 7 November 2022
Bug fix: Fix PHP deprecation warning converting false to array
Maintenance: Update Freemius SDK
1.3.5
Release date: 1 March 2022
Maintenance: Update Freemius SDK
1.3.4
Release date: 24 January 2022
Bug fix: Fix sprintf format typo causing PHP8.0 error
1.3.3
Release date: 24 January 2022
Maintenance: Update Freemius SDK
Maintenance: Fix deprecated warning for PHP8.0
1.3.2
Release date: 18 May 2021
Bug fix: Workaround for Gutenberg plugin issue #31753
1.3.1
Release date: 4 January 2021
Enhancement: Enable bulk downloading for the Media Library Grid mode.
Maintenance: Refactoring code into a plugin class.
1.3.0
Release date: 6 December 2020
Enhancement: Add option to disable auto-deletion of downloads.
Enhancement: Add option to encrypt and password-protect zip files. props to @Victor, @Walter
Maintenance: Change zip files location to within Uploads directory
Maintenance: Update Freemius SDK
Bug fix: Make compatibile with Formidable Forms Pro
1.2.4
Release date: 12 September 2020
Enhancement: Guidance added to Settings page and more notices added to help users.
Maintenance: Update Freemius SDK
Maintenance: Tidy up translation strings
1.2.3
Release date: 19 October 2017
Bug Fix: Prevent “Can’t use method return value” error for php < 5.5. 1.2.2 Release date: 22 July 2017 Maintenance: Fix poor placement of file info data when popup is scrollable. Maintenance: Update Admin Notice Manager class to latest version. Maintenance: Add in request for rating. 1.2.1 Release date: 15 July 2017 Maintenance: Delete ‘jabd_version’ option on uninstall. Maintenance: Add in Freemius functionality for feedback. 1.2.0 Release date: 25 June 2017 Maintenance: Change the permissions for downloads so that they match the permissions for managing attachments generally. Maintenance: Remove the filter jabd_user_can_download. Bug fix: All download post statuses (including private) are now deleted automatically by cron. 1.1.4 Release date: 12 June 2017 Bug fix: Properly include admin notice manager class. 1.1.3 Release date: 12 June 2017 Bug fix: Remove warning when when adding new post. Maintenance: Refactor admin notices. Maintenance: Improve activate / deactivate / uninstall security. 1.1.2 Release date: 1 June 2017 Maintenance: Added missing translation strings. Bug fix: Disable download button on download posts in Bin. 1.1.1 Release date: 19 January 2017 Maintenance: Add dismissable reminders that a) bulk download function is only available in list mode and b) media items per page can be changed using Screen Options. 1.1.0 Release date: 19 December 2016 Enhancement: Give option to include intermediate sizes. Enhancement: Give option to have all files in single folder in zip instead of replicating structure within uploads folder. Enhancement: Setting to limit uncompressed download size. Also display file count and size info before download. Maintenance: Fix undefined index notice on saving settings. Maintenance: Remove options to ‘view’ or ‘preview’ a download as this just triggers a download. 1.0.2 Release date: 7 December 2016 Bug fix: rewrite rules now flushed on activation to prevent 404 on attempted download 1.0.1 Initial version on WordPress.org plugin repository
