Welcome Guest, Not a member yet? Register   Sign In
Problem with Uploading two images, re-sizing them, and saving them to the database
#3

[eluser]CroNiX[/eluser]
I would check the contents of $_FILES array when you upload. Do a print_r($_FILES). I think the way you are trying to access them might be wrong.

Also, these rules are unnecessary and might cause problems:
Code:
$this->form_validation->set_rules('photo_one', 'Photo', 'trim');
$this->form_validation->set_rules('photo_two', '', 'trim');
Since $_FILES aren't sent via $_POST.

Edit: It looks like you are only putting the values in the array that get sent to submit() if the file(s) got uploaded, but in upload() you save everything as though it exists.


Messages In This Thread
Problem with Uploading two images, re-sizing them, and saving them to the database - by El Forum - 02-08-2012, 09:04 PM



Theme © iAndrew 2016 - Forum software by © MyBB