Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

single attachment file validation #259

Merged
merged 2 commits into from
Mar 11, 2024

Conversation

i-just
Copy link
Contributor

@i-just i-just commented Mar 7, 2024

Description

If a contact form has a single file attachment (<input type="file" name="attachment">), custom validation will only work if it’s an instance of UploadedFile and not an array of them.

When having a form that allows multiple file attachments (<input type="file" name="attachment[]" multiple>) and only uploading one file to it, custom validation will work, providing the validation rule contains the maxFiles parameter.

This can be merged into v2 and v3.

I am closing #255 and #256 in favour of this one - thanks @nstCactus!

Related issues

#254

[ci skip]
@brandonkelly brandonkelly merged commit c5baf99 into v2 Mar 11, 2024
@brandonkelly brandonkelly deleted the bugfix/254-single-attachment-validation branch March 11, 2024 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants