I have a file upload on my form and it is working, however, it doesn't always work. When a user uploads a larger file (2MB+) it shows my success message and the form is submitted successfully (I see the post in the dashboard) but the image is not uploaded to my server. I am aware that this could be my web host restricting file size, though I am unsure.
If it is my web host, would the form still "succeed" when submitting?
How can I prevent a user from submitting the form successfully with an invalid image size?