CodeIgniter Forums
Validation pronlem with standard upload script and forms - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Validation pronlem with standard upload script and forms (/showthread.php?tid=21583)

Pages: 1 2


Validation pronlem with standard upload script and forms - El Forum - 08-14-2009

[eluser]kierownik[/eluser]
I think that you should rename
Code:
$data['error'] = array('error'=>$this->upload->display_errors());
to
Code:
$data['error'] = array('upload_error'=>$this->upload->display_errors());

I get the sense that that array gets overwritten.
Then in your viewfile you should also rename it.