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
    594
    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

      This post is deleted!
      1 Reply Last reply Reply Quote 0
      • N
        Naresh-webkul last edited by

        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

          @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

            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

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

              1 Reply Last reply Reply Quote 0
              • First post
                Last post