Note that there are some explanatory texts on larger screens.

plurals
  1. POUploading file via FTP using CodeIgniter
    primarykey
    data
    text
    <p>I am trying to upload a file using the FTP class in CodeIgniter. For that I have written the following:</p> <pre><code> $this-&gt;load-&gt;library('ftp'); $config['hostname'] = '127.0.0.1'; $config['username'] = 'localftp'; $config['password'] = ''; $config['debug'] = TRUE; $this-&gt;ftp-&gt;connect($config); $this-&gt;ftp-&gt;upload($_FILES['book_file']['tmp_name'], asset_url()."books/" . $_FILES['book_file']['name'], "ascii", 0775); $this-&gt;ftp-&gt;close(); </code></pre> <p>but it is showing me :</p> <blockquote> <p>Unable to upload the specified file. Please check your path.</p> </blockquote> <p>I am using XAMPP FileZilla to connect to my FTP host. For that I have created the user <code>localftp</code> with no password. And this user has all the permissions on the host.</p> <p>and this is my local XAMPP server logging:</p> <pre><code> (000016)24-Dec-13 23:27:05 PM - (not logged in) (127.0.0.1)&gt; Connected, sending welcome message... (000016)24-Dec-13 23:27:05 PM - (not logged in) (127.0.0.1)&gt; 220-FileZilla Server version 0.9.41 beta (000016)24-Dec-13 23:27:05 PM - (not logged in) (127.0.0.1)&gt; 220-written by Tim Kosse (Tim.Kosse@gmx.de) (000016)24-Dec-13 23:27:05 PM - (not logged in) (127.0.0.1)&gt; 220 Please visit http://sourceforge.net/projects/filezilla/ (000016)24-Dec-13 23:27:05 PM - (not logged in) (127.0.0.1)&gt; USER localftp (000016)24-Dec-13 23:27:05 PM - (not logged in) (127.0.0.1)&gt; 331 Password required for localftp (000016)24-Dec-13 23:27:05 PM - (not logged in) (127.0.0.1)&gt; PASS (000016)24-Dec-13 23:27:05 PM - localftp (127.0.0.1)&gt; 230 Logged on (000016)24-Dec-13 23:27:05 PM - localftp (127.0.0.1)&gt; PASV (000016)24-Dec-13 23:27:05 PM - localftp (127.0.0.1)&gt; 227 Entering Passive Mode (127,0,0,1,205,219) (000016)24-Dec-13 23:27:05 PM - localftp (127.0.0.1)&gt; TYPE A (000016)24-Dec-13 23:27:05 PM - localftp (127.0.0.1)&gt; 200 Type set to A (000016)24-Dec-13 23:27:05 PM - localftp (127.0.0.1)&gt; STOR http://localhost/International/public/books/ftpupload.pdf (000016)24-Dec-13 23:27:05 PM - localftp (127.0.0.1)&gt; 550 Filename invalid (000016)24-Dec-13 23:27:05 PM - localftp (127.0.0.1)&gt; disconnected. </code></pre> <p>on the second last line it is saying 550 filename invalid.. I think this is my problem.. Please can any one help me out to solve this issue..</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload