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

Form with upload incorrect file show the messeage

form

Started by Daniel Dobiášovský 5 years ago · 0 replies · 494 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 jean-louis67, 3 weeks ago
2 308 3 weeks ago
General · by Andy Miller, 3 weeks ago
0 310 3 weeks ago
General · by Veehem, 4 weeks ago
0 263 4 weeks ago
General · by milkboy, 4 weeks ago
0 264 4 weeks ago
General · by ian russell, 1 month ago
2 335 1 month ago