Welcome Guest, Not a member yet? Register   Sign In
Error: Unable to locate the source file.
#1

[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!
#2

[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!




Theme © iAndrew 2016 - Forum software by © MyBB