Skip to content

Commit 7a832d9

Browse files
Merge pull request #770 from jitendra-webkul/master
Issue #755 fixed
2 parents 822c1fe + f8004b1 commit 7a832d9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/Webkul/Attribute/src/Http/Requests/AttributeForm.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ public function rules()
116116
if ($attribute->type == 'price') {
117117
array_push($validations[$attribute->code], new Decimal);
118118
}
119+
120+
if ($attribute->type == 'image') {
121+
array_push($validations[$attribute->code], 'mimes:bmp,jpeg,jpg,png,webp');
122+
}
119123
}
120124

121125
if ($attribute->is_unique) {

0 commit comments

Comments
 (0)