CodeIgniter Forums
Error: Unable to locate the source file. - 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: Error: Unable to locate the source file. (/showthread.php?tid=3819)



Error: Unable to locate the source file. - El Forum - 10-23-2007

[eluser]Unknown[/eluser]
So im running on Linux Enterprise using PHP4. My issue is that i cannot upload files via the ftp built-in library. For some reason i keep getting:

An Error Was Encountered
Unable to locate the source file. Please check your path.


Heres my code:

Code:
$image = $_FILES['image']['name'];
    $image_local = $_FILES['image']['tmp_name'];

//debug
    echo "Local path to img: " . $image_local . "/" . $image ."<br />";
    
    $this->ftp->connect($config);
    $this->ftp->upload($image_local . '/' . $image, '/public_html/' . $image, 'ascii', 0775);
    $this->ftp->close();
    echo "Successfully uploaded everything! Good job. ;)";
    echo anchor('acontrol', 'Upload More->');

the debug path i created pumps out the path and filename just fine, but still wont upload it.
Any ideas?

Thanks!


Error: Unable to locate the source file. - El Forum - 10-24-2007

[eluser]Unknown[/eluser]
OK so i think the issue might be that i am missing my tmp directory. That would make sense i guess. This issue is solved until further notice!