[eluser]djenniex[/eluser]
[quote author="CIfan" date="1258474196"]
Thx for the reply. I placed your code directly under the
_execute function in
MY_Form_validation.php. When I submit the form, all my text input fields won't validate and give the following form errors with no logic at all:
- Unknown upload error
- The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form
Do you experience the same if you combine input text fields an input file fields?[/quote]
I've tested this in various ways, and all my inputs are validating including the file input fields and any text fields that I validate.
What does your form_validation rules look like?
Did you specify a MAX_FILE_SIZE in a hidden input field? ie.
Code:
<input type="hidden" name="MAX_FILE_SIZE" value="2048" />
From the error output, it seems to functioning properly, if the file you are uploading is more than the max_file_size spec.