1
votes

Ok, so I need to download files from my server since they are files that users upload. The reason I am using FTP with WAMP is just so I can test my script on my computer. Once I get it working, I can change the config files once the app is uploaded to a web server. I am using FileZilla.

MY application installation folder: W:\wamp\www\idealeffort

The above directory is also set as my FileZilla user's home directory. There is a folder in my application called "_resumes". These are the files that I will need to download. So here is the script that I use to download these files.

                $this->load->library('ftp');

                $this->ftp->connect();

                $this->ftp->download('/_resumes/'.$app['resume_filename'], FCPATH.'_resumes/'.$app['resume_filename']);

$app['resume_filename'] is a database result. I have checked to make sure that the file exists. I get the error "Unable to download the specified file. Please check your path."

Any ideas?

Note: FCPATH displays as "W:\wamp\www\idealeffort\ "

1

1 Answers

1
votes

If you check codeigniter help you have to give path from /public_html/....

So i think its problem with path.

Hope this helps