Title: Upload failed! Target folder doesn’t exist.
Last modified: June 10, 2018

---

# Upload failed! Target folder doesn’t exist.

 *  Resolved [Christopher Harden](https://wordpress.org/support/users/christopherharden/)
 * (@christopherharden)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/upload-failed-target-folder-doesnt-exist/)
 * I have tried everything and cannot get this to work. Please help.
    Page: [http://wilarywinn.staging.wpengine.com/file-upload/](http://wilarywinn.staging.wpengine.com/file-upload/)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fupload-failed-target-folder-doesnt-exist%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 15 replies - 1 through 15 (of 24 total)

1 [2](https://wordpress.org/support/topic/upload-failed-target-folder-doesnt-exist/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/upload-failed-target-folder-doesnt-exist/page/2/?output_format=md)

 *  Plugin Author [nickboss](https://wordpress.org/support/users/nickboss/)
 * (@nickboss)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/upload-failed-target-folder-doesnt-exist/#post-10386000)
 * I tried to do an upload. I received an error that target folder does not exist.
   There is an option in the shortcode to auto-create the folder if it does not 
   exist. Do you have it enabled?
 * Regards
 * Nickolas
 *  Thread Starter [Christopher Harden](https://wordpress.org/support/users/christopherharden/)
 * (@christopherharden)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/upload-failed-target-folder-doesnt-exist/#post-10387642)
 * I did not have auto-create folder enabled. I enabled it and it is still not working.
   I am getting a 502 Bad Gateway error.
 *  Plugin Author [nickboss](https://wordpress.org/support/users/nickboss/)
 * (@nickboss)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/upload-failed-target-folder-doesnt-exist/#post-10389979)
 * Something is preventing the plugin from uploading using AJAX. Probably some security
   settings.
 * Try disabling AJAX in the shortcode. There is a setting in General tab “Disable
   AJAX”.
 * Any change?
 * Nickolas
 *  Thread Starter [Christopher Harden](https://wordpress.org/support/users/christopherharden/)
 * (@christopherharden)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/upload-failed-target-folder-doesnt-exist/#post-10392416)
 * I disabled AJAX and it is still not working. Any ideas?
 *  Plugin Author [nickboss](https://wordpress.org/support/users/nickboss/)
 * (@nickboss)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/upload-failed-target-folder-doesnt-exist/#post-10397862)
 * 502 error again!
 * Do you have any security or cache plugins in our website?
 * Furthermore, do you have access to the Error Log of your web server?
 * Nickolas
 *  Thread Starter [Christopher Harden](https://wordpress.org/support/users/christopherharden/)
 * (@christopherharden)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/upload-failed-target-folder-doesnt-exist/#post-10441047)
 * Hi there.
 * Sorry for the delayed response. I tested this on my own server of which I have
   complete control. I was able to get it to work except when using port 22 for 
   sFTP. The use of sFTP is required for the instance that I shared with you.
 * Do you have a working instance that uses sFTP?
 *  Plugin Author [nickboss](https://wordpress.org/support/users/nickboss/)
 * (@nickboss)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/upload-failed-target-folder-doesnt-exist/#post-10443861)
 * Hi, what error do you get now? and what is your shortcode?
 * Regards
 * Nickolas
 *  [ther00kie](https://wordpress.org/support/users/ther00kie/)
 * (@ther00kie)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/upload-failed-target-folder-doesnt-exist/#post-10543766)
 * Hi [@nickboss](https://wordpress.org/support/users/nickboss/),
 * I’m experiencing the same issue. I have the libraries, but when ever I try to
   upload I get:
 * “i´m getting the same error: Target folder does not exist.”
 * this is my shortcode
    [wordpress_file_upload uploadpath=”” uploadpatterns=”*.*”
   maxsize=”1500″ createpath=”true” forcefilename=”true” accessmethod=”ftp” ftpinfo
   =”username:password@ftp.mysite.nl:s22″ useftpdomain=”true” forceclassic=”true”]
 *  Plugin Author [nickboss](https://wordpress.org/support/users/nickboss/)
 * (@nickboss)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/upload-failed-target-folder-doesnt-exist/#post-10546405)
 * Hi, does username or password contain any (:) or (@) characters?
 * Nickolas
 *  [ther00kie](https://wordpress.org/support/users/ther00kie/)
 * (@ther00kie)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/upload-failed-target-folder-doesnt-exist/#post-10546678)
 * No it does not, username has 1 uppercase and lowecase characters and the password
   is uppper/lowercase and numbers
 *  [ther00kie](https://wordpress.org/support/users/ther00kie/)
 * (@ther00kie)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/upload-failed-target-folder-doesnt-exist/#post-10546706)
 * without sftp it works fine, but with sftp i get the error
    -  This reply was modified 7 years, 9 months ago by [ther00kie](https://wordpress.org/support/users/ther00kie/).
 *  Plugin Author [nickboss](https://wordpress.org/support/users/nickboss/)
 * (@nickboss)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/upload-failed-target-folder-doesnt-exist/#post-10549638)
 * Have you tried to connect to the FTP using an FTP client, like FileZilla? Does
   it connect with sftp (port 22)?
 * Nickolas
 *  [ther00kie](https://wordpress.org/support/users/ther00kie/)
 * (@ther00kie)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/upload-failed-target-folder-doesnt-exist/#post-10550112)
 * Yes the connection works, the credentials are right.
 *  Plugin Author [nickboss](https://wordpress.org/support/users/nickboss/)
 * (@nickboss)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/upload-failed-target-folder-doesnt-exist/#post-10550545)
 * Ok first try uploadpath to be “/”. If it still fails, try to set it to a subfolder,
   which exists in the ftp server, with adequate permissions for writing.
 * Nickolas
 *  [ther00kie](https://wordpress.org/support/users/ther00kie/)
 * (@ther00kie)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/upload-failed-target-folder-doesnt-exist/#post-10550652)
 * It’s not working I tried:
 * [wordpress_file_upload uploadpath=”/” maxsize=”1500″ createpath=”true” forcefilename
   =”true” accessmethod=”ftp” ftpinfo=”**************:s22″ useftpdomain=”true” showtargetfolder
   =”true” askforsubfolders=”true” subfoldertree=”{root}/upload” adminmessages=”
   true”]
 * [wordpress_file_upload uploadpath=”” maxsize=”1500″ createpath=”true” forcefilename
   =”true” accessmethod=”ftp” ftpinfo=”**************:s22″ useftpdomain=”true” showtargetfolder
   =”true” askforsubfolders=”true” subfoldertree=”{root}/upload” adminmessages=”
   true”]
 * And also hard subfolder
 * [wordpress_file_upload uploadpath=”upload” maxsize=”1500″ createpath=”true” forcefilename
   =”true” accessmethod=”ftp” ftpinfo=”**************:s22″ useftpdomain=”true” showtargetfolder
   =”true” adminmessages=”true”]
 * [wordpress_file_upload uploadpath=”/upload” maxsize=”1500″ createpath=”true” 
   forcefilename=”true” accessmethod=”ftp” ftpinfo=”**************:s22″ useftpdomain
   =”true” showtargetfolder=”true” askforsubfolders=”true” subfoldertree=”{root}/
   upload” adminmessages=”true”]
 * [wordpress_file_upload uploadpath=”/upload/” maxsize=”1500″ createpath=”true”
   forcefilename=”true” accessmethod=”ftp” ftpinfo=”**************:s22″ useftpdomain
   =”true” showtargetfolder=”true” adminmessages=”true”]
 * [wordpress_file_upload uploadpath=”upload/” maxsize=”1500″ createpath=”true” 
   forcefilename=”true” accessmethod=”ftp” ftpinfo=”**************:s22″ useftpdomain
   =”true” showtargetfolder=”true” adminmessages=”true”]

Viewing 15 replies - 1 through 15 (of 24 total)

1 [2](https://wordpress.org/support/topic/upload-failed-target-folder-doesnt-exist/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/upload-failed-target-folder-doesnt-exist/page/2/?output_format=md)

The topic ‘Upload failed! Target folder doesn’t exist.’ 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/)

## Tags

 * [ftp](https://wordpress.org/support/topic-tag/ftp/)
 * [upload](https://wordpress.org/support/topic-tag/upload/)

 * 24 replies
 * 3 participants
 * Last reply from: [ther00kie](https://wordpress.org/support/users/ther00kie/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/upload-failed-target-folder-doesnt-exist/page/2/#post-10595134)
 * Status: resolved