Upload failed! Target folder doesn’t exist.
-
I have tried everything and cannot get this to work. Please help.
Page:
http://wilarywinn.staging.wpengine.com/file-upload/The page I need help with: [log in to see the link]
-
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
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.
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
I disabled AJAX and it is still not working. Any ideas?
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
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?
Hi, what error do you get now? and what is your shortcode?
Regards
Nickolas
Hi @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”]Hi, does username or password contain any (:) or (@) characters?
Nickolas
No it does not, username has 1 uppercase and lowecase characters and the password is uppper/lowercase and numbers
without sftp it works fine, but with sftp i get the error
-
This reply was modified 7 years, 9 months ago by
ther00kie.
Have you tried to connect to the FTP using an FTP client, like FileZilla? Does it connect with sftp (port 22)?
Nickolas
Yes the connection works, the credentials are right.
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
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”]
-
This reply was modified 7 years, 9 months ago by
The topic ‘Upload failed! Target folder doesn’t exist.’ is closed to new replies.