Title: Various errors when using ftp
Last modified: October 2, 2021

---

# Various errors when using ftp

 *  Resolved [econexact](https://wordpress.org/support/users/econexact/)
 * (@econexact)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/various-errors-when-using-ftp/)
 * I’m trying to get the plugin working on a test page. But I keep getting the “
   unknown error”. I selected “ftp” and have tried two different ftp servers and
   various settings but keeps to get “unknown error” when trying to upload files.
   When setting the folder to anything else than “uploads” (this folder exist on
   the ftp server) I keep getting the “Target folder doesn’t exist.” message, no
   matter if the folder actually exists or not. createpath=”true” seems to do nothing.
   I even get the “Target folder doesn’t exist.” message when I purposely enter 
   the wrong IP address/port, which makes absolutely no sense.
 * I can connect to the ftp server via FileZilla with the same user and create files
   without any problems.
 * Any idea what might be causing these error messages?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fvarious-errors-when-using-ftp%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [nickboss](https://wordpress.org/support/users/nickboss/)
 * (@nickboss)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/various-errors-when-using-ftp/#post-14934163)
 * Hi, can you send me the shortcode you use (hide the ftp credentials)?
 * Regards
 * Nickolas
 *  Thread Starter [econexact](https://wordpress.org/support/users/econexact/)
 * (@econexact)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/various-errors-when-using-ftp/#post-14938307)
 * [wordpress_file_upload uploadpath=”newpath” createpath=”true” accessmethod=”ftp”
   ftpinfo=”user:password@123.123.123.123:12345″ useftpdomain=”true” adminmessages
   =”true”]
 * Creates a folder with the name “newpath” and puts a file of 0 bytes in this folder.
   But gives the error: The duration of the upload exceeded the time limit of the
   server.
 * A shorter version of the FTP server log says:
    CONNECT: Client “::ffff:123.123.123.123”
   OK LOGIN: Client “::ffff:123.123.123.123” … OK MKDIR: Client “::ffff:123.123.123.123”,“/
   newpath” … FAIL UPLOAD: Client “::ffff:123.123.123.123”, “/newpath/test.txt”,
   0.00Kbyte/sec
 * Changing permission by using for example ftpfilepermissions=”0755″ works fine.
   FTP server log shows “OK CHMOD”.
 * Using ftppassivemode=”true” doesn’t work, but the server can accept passive mode.
   It gives the same error as above but : The duration of the upload exceeded the
   time limit of the server.
 * I have tried to increase some PHP settings like memory_limit, max_execution_time(
   to 120 s) and max_input_time (to 120 s). But this just gives the error “Upload
   failed! Unknown error.”
 * The server log gives an error/warning: “PHP Warning: ftp_put(): Failed to establish
   connection.”
 * The files I have tried are between 9 bytes and 2.5 MB of different formats (jpg,
   pdf, txt etc). I have also tried to temporarily disable the firewall on the web
   server just to be sure that wasn’t causing any problems. I tried two different
   ftp servers. One of them is used for daily backup of sites. Both works with other
   ftp clients.
    -  This reply was modified 4 years, 6 months ago by [econexact](https://wordpress.org/support/users/econexact/).
    -  This reply was modified 4 years, 6 months ago by [econexact](https://wordpress.org/support/users/econexact/).
 *  Thread Starter [econexact](https://wordpress.org/support/users/econexact/)
 * (@econexact)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/various-errors-when-using-ftp/#post-14940423)
 * After some fixing and trixing, I managed to solve it. There were several issues,
   but it turns out none of these are probably directly related to the plugin. One
   of the issues was that the FTP server is behind a NAT and this was blocking outgoing
   traffic when using active FTP.
 *  Plugin Author [nickboss](https://wordpress.org/support/users/nickboss/)
 * (@nickboss)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/various-errors-when-using-ftp/#post-14941871)
 * Oh ok, good to know.
 * Let me know if you have any other problems.
 * Regards
 * Nickolas

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Various errors when using ftp’ is closed to new replies.

 * ![](https://ps.w.org/wp-file-upload/assets/icon-256x256.png?rev=3252590)
 * [Iptanus File Upload](https://wordpress.org/plugins/wp-file-upload/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-file-upload/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-file-upload/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-file-upload/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-file-upload/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-file-upload/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [nickboss](https://wordpress.org/support/users/nickboss/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/various-errors-when-using-ftp/#post-14941871)
 * Status: resolved