Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

Form with upload incorrect file show the messeage

form

Started by Daniel Dobiášovský 5 years ago · 0 replies · 416 views
5 years ago

I encountered an exception and found no solution anywhere.

Forms work in "process:" with "message:" and it works great, except when I upload a mismatched file to the drag and drop box, for example "filesize: 1" and I upload a 1.5 Mb file.

Yes, the form crosses the file and after running it I can read that the file is too large to upload, but if I do not delete the file from the field and send the form, it will be processed and even if it is not sent a message about successful submission.

So how do I solve the problem with the command upload field?
Something like "message_incorrect:"
Has anyone solved it?

Thank you for your time guys!

Suggested topics

Topic Participants Replies Views Activity
General · by Jerry Hunt, 4 days ago
2 91 14 hours ago
General · by pamtbaau, 19 hours ago
1 61 18 hours ago
General · by Andy Miller, 1 day ago
0 47 1 day ago
General · by Marcel, 12 months ago
6 354 5 days ago
General · by Duc , 6 days ago
3 44 6 days ago