I have an ActiveForm with Kartik's FileInput widget. It is a type of Edit Form. I am fetching db data in it along with images.
Case 1 - If Image is already added, it is showing large-image field as required whenever I click on update button.
Case 2 - If I Choose new image, it is working fine.
How can I set some value for FileInput for existing images to make it not empty/valid. I want some solution for case1. Each time its asking for new image to update any changes. Please help me to fix this.
I have encountered solution by creating my custom scenarios. In your case I would modify the rules like this:
When You Update Then Form Not Pass Image value so you need to check it "client WhenClient " Validation Check. Like Your Field Name Class and check image exist or not in preview box.
Model File :
Form Input :
Controller Delete Uploaded Image :