fix: 🐛 add limit size when sending contact formulary #87
This commit is contained in:
parent
666d79b32f
commit
8386abbbcb
1 changed files with 1 additions and 1 deletions
|
|
@ -157,7 +157,7 @@ class ContactRequest extends FormRequest
|
|||
} elseif (isset(request()->file) and (request()->file->getClientMimeType() === "application/pdf")) {
|
||||
$rules = \array_merge($rules, [
|
||||
//phpcs:ignore Generic.Files.LineLength.TooLong
|
||||
'file' => 'sometimes|nullable|mimes:pdf|required_with:product_name,product_date_limit,product_barcode,product_lot,product_date_consumption,product_location'
|
||||
'file' => 'sometimes|nullable|mimes:pdf|max:10000|required_with:product_name,product_date_limit,product_barcode,product_lot,product_date_consumption,product_location'
|
||||
]);
|
||||
} elseif (
|
||||
isset(request()->file) and
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue