Showing
4 changed files
with
4 additions
and
4 deletions
| ... | ... | @@ -1930,7 +1930,7 @@ jQuery(document).ready(function(){ |
| 1930 | 1930 | |
| 1931 | 1931 | |
| 1932 | 1932 | // DRAG and DROP file |
| 1933 | - var available_file_type = ['image/jpeg', 'image/pjpeg', 'image/png', 'image/gif']; | |
| 1933 | + var available_file_type = ['image/jpeg', 'image/pjpeg', 'image/png', 'image/gif', 'image/webp']; | |
| 1934 | 1934 | |
| 1935 | 1935 | var initImageDragDrop = function(){ |
| 1936 | 1936 | $('.drop-down-upload').each(function(){ | ... | ... |
| ... | ... | @@ -466,7 +466,7 @@ |
| 466 | 466 | }; |
| 467 | 467 | defaultFileTypeSettings = { |
| 468 | 468 | image: function (vType, vName) { |
| 469 | - return compare(vType, 'image.*') || compare(vName, /\.(gif|png|jpe?g)$/i); | |
| 469 | + return compare(vType, 'image.*') || compare(vName, /\.(webp|gif|png|jpe?g)$/i); | |
| 470 | 470 | }, |
| 471 | 471 | html: function (vType, vName) { |
| 472 | 472 | return compare(vType, 'text/html') || compare(vName, /\.(htm|html)$/i); | ... | ... |