WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Eccube/Controller/Admin/Product/ProductController.php
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ public function imageProcess(Request $request)

$images = $request->files->get('admin_product');

$allowExtensions = ['gif', 'jpg', 'jpeg', 'png'];
$allowExtensions = ['gif', 'jpg', 'jpeg', 'png', 'webp'];
$files = [];
if (count($images) > 0) {
foreach ($images as $img) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public function imageProcess(Request $request)

$images = $request->files->get('payment_register');

$allowExtensions = ['gif', 'jpg', 'jpeg', 'png'];
$allowExtensions = ['gif', 'jpg', 'jpeg', 'png', 'webp'];

$filename = null;
if (isset($images['payment_image_file'])) {
Expand Down
3 changes: 2 additions & 1 deletion src/Eccube/Resource/template/admin/Product/product.twig
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ file that was distributed with this source code.
acceptedFileTypes: [
'image/gif',
'image/png',
'image/jpeg'
'image/jpeg',
'image/webp',
],
allowFileSizeValidation: true,
maxFileSize: 10000000,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ file that was distributed with this source code.
acceptedFileTypes: [
'image/gif',
'image/png',
'image/jpeg'
'image/jpeg',
'image/webp',
],
allowFileSizeValidation: true,
maxFileSize: 10000000,
Expand Down
Loading