{"id":2026,"date":"2007-09-13T11:06:14","date_gmt":"2007-09-13T11:06:14","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/upload-unziper\/"},"modified":"2007-12-04T20:58:48","modified_gmt":"2007-12-04T20:58:48","slug":"upload-unziper","status":"publish","type":"plugin","link":"https:\/\/ca.wordpress.org\/plugins\/upload-unziper\/","author":237244,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0","stable_tag":"trunk","tested":"2.2.3","requires":"2.2","requires_php":"","requires_plugins":"","header_name":"Upload Unzipper","header_author":"Ulf Benjaminsson","header_description":"","assets_banners_color":"","last_updated":"2007-12-04 20:58:48","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.amazon.com\/gp\/registry\/wishlist\/2QB6SQ5XX2U0N\/105-3209188-5640446?reveal=unpurchased&filter=all&sort=priority&layout=standard&x=21&y=17","header_plugin_uri":"http:\/\/wordpress.org\/extend\/plugins\/upload-unziper\/","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":20,"downloads":5099,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[11137,38814,259,7343],"plugin_category":[50],"plugin_contributors":[78045],"plugin_business_model":[],"class_list":["post-2026","plugin","type-plugin","status-publish","hentry","plugin_tags-batch","plugin_tags-unzip","plugin_tags-upload","plugin_tags-zip","plugin_category-media","plugin_contributors-ulfben","plugin_committers-ulfben"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/upload-unziper.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Upload Unziper let's you upload zip-archives and have them extracted, each file properly attached to the current post.<\/p>\n\n<p>It's built upon and meant to replace James Revillini's now-broken <a href=\"http:\/\/james.revillini.com\/projects\/just-unzip\/\">just-unzip<\/a>, and expands on the original plugin in the following ways:<\/p>\n\n<ul>\n<li>runs all files through WP's sanitize filter to ensure valid filenames<\/li>\n<li>does not attach duplicates<\/li>\n<li>does not replace files with the same name<\/li>\n<li>correctly deals with nestled directories <\/li>\n<li>uses the latest WP core functionality and the latest PclZip version<\/li>\n<li>and - perhaps most importantly - it <em>works<\/em>! ;)<\/li>\n<\/ul>\n\n<p>In short - it's a nice way to do batch uploading. I highly recommend you combine it with an <a href=\"http:\/\/wordpress.org\/extend\/plugins\/mini-slides\/\">inline image viewer<\/a> and a plugin to better <a href=\"http:\/\/wordpress.org\/extend\/plugins\/custom-upload-dir\/\">organize your uploads<\/a>.<\/p>\n\n<h3>TODO (help needed)<\/h3>\n\n<p>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.<\/p>\n\n<p>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.<\/p>\n\n<p>Options I'd like exposed:<\/p>\n\n<ul>\n<li>delete zip when done (default: true)<\/li>\n<li>unzip and attach (default: true)<\/li>\n<li>attach zip to post (default: false)Copyright (C) 2007 Ulf Benjaminsson (ulf at ulfben dot com).<\/li>\n<\/ul>\n\n<p>This program is free software; you can redistribute it and\/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation; either version 2 of the License, or\n(at your option) any later version.<\/p>\n\n<p>This program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU General Public License for more details.<\/p>\n\n<p>You should have received a copy of the GNU General Public License\nalong with this program; if not, write to the Free Software\nFoundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Extract the <code>wp-upload-unzipper<\/code> folder and transfer it to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Upload some zips. :)<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Can I have the ZIP-file attached to the post too?<\/dt>\n<dd><p>Yes. But you'll have to alter the source. Open <code>wp-upload-unzipper.php<\/code> and set <code>$addZipToPost<\/code> to <code>true<\/code>.<\/p><\/dd>\n<dt>Can I keep the ZIP-file on the server?<\/dt>\n<dd><p>Open <code>wp-upload-unzipper.php<\/code> and set <code>$deleteZipWhenDone<\/code> to <code>false<\/code>.<\/p><\/dd>\n<dt>Can I disable the automatic extraction of archives?<\/dt>\n<dd><p>Disable the plugin. :)<\/p>\n\n<p>If you're thinking of contributing a front-end for this plugin, you'd want to check out <code>$unzipArchives<\/code> in <code>wp-upload-unzipper.php<\/code>.<\/p><\/dd>\n\n<\/dl>","raw_excerpt":"Extracts uploaded zip archives and associates all files with the current post.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/2026","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=2026"}],"author":[{"embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/ulfben"}],"wp:attachment":[{"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=2026"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=2026"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=2026"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=2026"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=2026"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=2026"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}