Skip to content

Commit

Permalink
Fix for uploading plugins.
Browse files Browse the repository at this point in the history
  • Loading branch information
jawngee committed Feb 1, 2017
1 parent c624adf commit 74b041f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions classes/tools/s3/ilab-media-s3-tool.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion ilab-media-tools.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/

Expand Down

1 comment on commit 74b041f

@1wdtv
Copy link

@1wdtv 1wdtv commented on 74b041f Feb 1, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jawngee, you are amazing, thank you ;-)
works

Please sign in to comment.