Skip to content

Image/file validation error #227

@zakir1929

Description

@zakir1929

#Image/file validation is not working.

Steps for recreating the issue.

=> Use any component of your plugin (i.e. genericForm)
=> just add a <input type="file"> field in a HTML form for image upload
=> add a required and image rule in component required|image
=> submit the form

it won't work

after digging a lot. I see that you have used post() function inside the magicForm.php class for retrieving form data.

The post() function won't accept image input and it is just there for accepting post input.
So to fix that I have created a PR. please accept it and add it to your new version.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions