I have a codeigniter php app. User fills out page, submits form for consideration. The form allows user to attach files with their submission. There is there is a 5mb limit on the file size that can be uploaded. When the user exceeds the limit, the form tries to submit, but ends up basically resetting/refreshing itself, so all the fields are blank, user has to reenter data.
How can/should I do two things: alert user the attachments have exceeded the limit allowed and submit the form data, excluding the attachments