From 74b041f70f796e83b9a03c909025e7bd45617c2e Mon Sep 17 00:00:00 2001 From: Jon Gilkison Date: Wed, 1 Feb 2017 23:05:45 +0700 Subject: [PATCH] Fix for uploading plugins. --- classes/tools/s3/ilab-media-s3-tool.php | 4 ++++ ilab-media-tools.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/classes/tools/s3/ilab-media-s3-tool.php b/classes/tools/s3/ilab-media-s3-tool.php index 2e82651a..36ee5ad1 100644 --- a/classes/tools/s3/ilab-media-s3-tool.php +++ b/classes/tools/s3/ilab-media-s3-tool.php @@ -209,6 +209,10 @@ public function handleUpload($upload, $context='upload') { if (file_is_displayable_image($upload['file'])) return $upload; + if (isset($_REQUEST["action"]) && ($_REQUEST["action"]=="upload-plugin")) { + return $upload; + } + $s3=$this->s3Client(true); if ($s3) { diff --git a/ilab-media-tools.php b/ilab-media-tools.php index d06b88e6..21937af9 100644 --- a/ilab-media-tools.php +++ b/ilab-media-tools.php @@ -4,7 +4,7 @@ Plugin URI: http://interfacelab.com/media-tools Description: Complete media management tools Author: Jon Gilkison -Version: 1.0.8 +Version: 1.0.9 Author URI: http://interfacelab.com */