• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

  • Register
  • Login
  • Search
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups

How to apply validations for image size on product image

Modules
2
5
664
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S
    Sarthak last edited by Sarthak 17 Mar 2020, 08:22 17 Mar 2020, 08:22

    This post is deleted!
    1 Reply Last reply Reply Quote 0
    • N
      Naresh-webkul last edited by 17 Mar 2020, 10:15

      Hello @Sarthak ,
      You can validate the image size limit from the product controller or from the edit.blade.php under the packages/Webkul/Admin/Resources/views/catalog/products path.

      Thank you.

      1 Reply Last reply Reply Quote 0
      • S
        Sarthak last edited by 17 Mar 2020, 10:45

        @Naresh-webkul
        Sir, can you plzz guide me how to apply validations on product image. bez i was trying on both but it cann't apply properly

        1 Reply Last reply Reply Quote 0
        • N
          Naresh-webkul last edited by 17 Mar 2020, 11:19

          Hello @Sarthak ,
          follow the path and add validation in file:
          packages\Webkul\Product\Http\Requests\ProductForm.php

          Selection_100.png

          Here you can apply the validation rule for the product image.

          also you shoul check this: https://laravel.com/docs/5.8/validation

          Thank you.

          1 Reply Last reply Reply Quote 0
          • S
            Sarthak last edited by 17 Mar 2020, 12:38

            @Naresh-webkul Thank you sir.
            It's working.

            1 Reply Last reply Reply Quote 0
            3 out of 5
            • First post
              3/5
              Last post