內容簡介
Upload Unziper 可以讓您上傳 zip 檔案並解壓縮,每個檔案都會正確附加到當前的文章。
它是基於 James Revillini 的現已失效的 just-unzip,並且在以下方面擴展了原始外掛:
透過 WP 的過濾器運行所有檔案,以確保有效的檔案名稱
不會附加重複的檔案
不會替換同名檔案
正確處理巢狀目錄
使用最新的 WP 核心功能和最新的 PclZip 版本
而且 - 也許最重要的是 - 它有效!😉
簡而言之 - 它是進行批量上傳的好方法。我強烈建議您將它與內頁圖像查看器 inline image viewer 以及更好地整理您的上傳文件的外掛結合使用。
待辦事項(需要幫助)
該外掛可能需要一些選項。正如它所是,它會始終解壓縮檔案,然後刪除它們 - 這可能並不總是需要的。
該外掛中已經使用了這方面的選項,因此這不應該是問題,但我只是討厭前端開發。在“上傳”- iframe 中放置幾個核取方塊即可完成。如果您有幾分鐘的時間來製作一些東西,請發送電子郵件給我或在此外掛的留言中發表評論。
我想公開的選項包括:
當完成時刪除 zip(預設:true)
解壓縮和附加(預設:true)
將 zip 附加到文章(預設值:false)
版權所有(C)2007 Ulf Benjaminsson(ulf at ulfben dot com)。
本程序是自由軟件;您可以根據 GNU 通用公共許可證的條款重新分發或修改它,這些條款由自由軟件基金會發布;或者根據您的選擇,任何後續的版本。
此程序是基於希望它有用,但是沒有任何擔保;即使沒有適用於特定目的的默示擔保或具體目的的適用性的擔保。有關更多詳細信息,請參閱 GNU 通用公共許可證。
您應該已經收到了 GNU 通用公共許可證的副本;如果沒有,請寫信給自由軟件基金會,地址為 59 Temple Place, Suite 330, Boston, MA 02111-1307 美國。
外掛標籤
開發者團隊
原文外掛簡介
Upload Unziper let’s you upload zip-archives and have them extracted, each file properly attached to the current post.
It’s built upon and meant to replace James Revillini’s now-broken just-unzip, and expands on the original plugin in the following ways:
runs all files through WP’s sanitize filter to ensure valid filenames
does not attach duplicates
does not replace files with the same name
correctly deals with nestled directories
uses the latest WP core functionality and the latest PclZip version
and – perhaps most importantly – it works! 😉
In short – it’s a nice way to do batch uploading. I highly recommend you combine it with an inline image viewer and a plugin to better organize your uploads.
TODO (help needed)
This plugin could do with a few options. As it is, it’ll always unzip archives and then delete them – which might not always be desired.
There are options for this already used in the plugin so it shouldn’t be a problem, but I just loath front-end development. Placing a few tickboxes in the ‘upload’-iframe would do the trick. If you’ve got a few minutes to throw something together, please email me or post a comment to this plugin.
Options I’d like exposed:
delete zip when done (default: true)
unzip and attach (default: true)
attach zip to post (default: false)Copyright (C) 2007 Ulf Benjaminsson (ulf at ulfben dot com).
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
