• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Uploading a file with other information.

#2
[eluser]bapobap[/eluser]
I've used this:

Code:
if ((!$this->upload->do_upload()) OR (!$this->form_validation->run())):

Though this could be wrong. While it works for me, if you fail the validation checks for the form inputs and the page is "refreshed" to show the validation errors, the data file you selected is no longer present in the form.

No big deal for me as it isn't used a lot but it might be annoying if users need to use it a lot.


Messages In This Thread
Uploading a file with other information. - by El Forum - 01-19-2009, 09:02 AM
Uploading a file with other information. - by El Forum - 01-26-2009, 09:15 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.