Welcome Guest, Not a member yet? Register   Sign In
Validation problem for form_upload
#1

[eluser]cinewbie81[/eluser]
Hi guys,

I have this on my form:
Code:
form_upload('csvFile', 'csvFile')

and here's my form validation
Code:
$rules['csvFile'] = "required";
$this->validation->set_rules($rules);

$fields['csvFile'] = 'CSV file';
$this->validation->set_fields($fields);    

if ($this->validation->run() == FALSE)
{
    // Form Validation Error
} else {
    // Form Validation Success
}

csvFile's rules has been set to 'required' because i want to make sure that users actually browse for a file.

Anyway, the validation error : "The CSV files field must have a value" is always display even though i have already browse for the file. Anyone ? Thanks in advance and Happy New Year 2008.


Messages In This Thread
Validation problem for form_upload - by El Forum - 01-02-2008, 03:11 AM
Validation problem for form_upload - by El Forum - 01-02-2008, 03:15 AM
Validation problem for form_upload - by El Forum - 01-02-2008, 03:33 AM
Validation problem for form_upload - by El Forum - 01-02-2008, 03:43 AM
Validation problem for form_upload - by El Forum - 01-02-2008, 04:25 AM
Validation problem for form_upload - by El Forum - 01-02-2008, 09:36 PM
Validation problem for form_upload - by El Forum - 01-02-2008, 10:05 PM
Validation problem for form_upload - by El Forum - 01-02-2008, 10:19 PM



Theme © iAndrew 2016 - Forum software by © MyBB