After image selected get validation error in laravel

Updated at 16-Jul-2021, By samar

After image selected get validation error in laravel

In this session, we are going to try to solve the "After image selected get validation error in laravel" puzzle by using the computer language.

Sometimes we get validation errors in laravel after the image is selected. We forget to add enctype="multipart/form-data" to form. This also adds validation errors in laravel. You have to add enctype="multipart/form-data" to form attributes in your HTML page.
  • Add enctype="multipart/form-data" to form attribute in html

    <form method="POST" action="form/action/url" enctype="multipart/form-data">
    

Back to code snippet queries related laravel