Welcome Guest, Not a member yet? Register   Sign In
Image Uploads
#2

[eluser]umefarooq[/eluser]
do_upload will not under stand $file it always understand $_FILES parameter so convert the $file parameter to following in you function.

Code:
$up = 'upload';
$_FILES['upload']['name'] = $file['name'];
        $_FILES['upload']['type'] = $file['type'];
        $_FILES['upload']['tmp_name'] = $file['tmp_name'];
        $_FILES['upload']['error'] = $file['error'];
        $_FILES['upload']['size'] = $file['size'];

$this->upload->do_upload($up)

it will work fine.


Messages In This Thread
Image Uploads - by El Forum - 07-06-2009, 07:45 AM
Image Uploads - by El Forum - 07-06-2009, 07:59 AM
Image Uploads - by El Forum - 07-06-2009, 08:05 AM
Image Uploads - by El Forum - 07-06-2009, 08:09 AM
Image Uploads - by El Forum - 07-06-2009, 08:14 AM
Image Uploads - by El Forum - 07-06-2009, 08:18 AM
Image Uploads - by El Forum - 07-06-2009, 08:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB