Skip to content
Snippets Groups Projects
Commit f28bda65 authored by xiawu's avatar xiawu Committed by Lawxen Liu
Browse files

Issue #3355247: Image uploading failure

parent 5669960b
No related branches found
No related tags found
1 merge request!3Issue #3355247: Image uploading failure
......@@ -171,7 +171,7 @@ class AwesomeLayout extends LayoutDefault implements PluginFormInterface {
'#default_value' => $this->configuration['section_properties']['background_image'],
'#upload_validators' => [
'file_validate_extensions' => ['gif png jpg jpeg svg'],
'file_validate_size' => '30M',
'file_validate_size' => [1024 * 1024 * 30],
],
];
......@@ -237,7 +237,7 @@ class AwesomeLayout extends LayoutDefault implements PluginFormInterface {
'#default_value' => $this->configuration[$key]['background_image'],
'#upload_validators' => [
'file_validate_extensions' => ['gif png jpg jpeg svg'],
'file_validate_size' => '30M',
'file_validate_size' => [1024 * 1024 * 30],
],
];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment