Skip to content

Commit

Permalink
Add preview for type .ico, .webp
Browse files Browse the repository at this point in the history
  • Loading branch information
sugeng-sulistiyawan committed Mar 10, 2020
1 parent b60e479 commit e3a1b3a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Dropify.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ class Dropify extends InputWidget
*/
public function init()
{
/**
* Add preview for type .ico, .webp
* Fixed Issue https://github.com/die-coding/yii2-dropify/issues/1
*/
if (empty($this->pluginOptions['imgFileExtensions'])) {
$this->pluginOptions['imgFileExtensions'] = ['png', 'jpg', 'jpeg', 'gif', 'bmp', 'ico', 'webp'];
}

$this->_options = [
"class" => "dropify",
];
Expand Down

2 comments on commit e3a1b3a

@Aresenka
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for quick reaction!

@sugeng-sulistiyawan
Copy link
Owner Author

Choose a reason for hiding this comment

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

You're welcome...

Please sign in to comment.