Closed olivierSOW closed 5 years ago
I can upload file in same situation with filezilla
I do a fork with a workaround into LowLevel class. Certainly not the best solution:
if (!(reply = Execute(command)).Success) { if(command.StartsWith("NLST ") && reply.Code=="550" && reply.Message== "No files found.") { //workaround for ftpd which response "550 No files found" when folder exists but is empty } else { stream.Close(); throw new FtpCommandException(reply); } }
Same trouble. Problem solved?
still not fixed in latest version (19.2.3).. UploadFile throws an exception if used with FtpExists.Overwrite or FtpExists.Skip and the destination directory is empty.. if there is any file, it works as expected
You can use my branch, i fix it but only for my way of use. I think i don’t fix it completly.
Is this fixed in the latest release?
Please reply if you still have this issue.
i tried it with 2 different ftp servers - one was FileZilla ftp server - here it works like a charm. but the second one is proftpd (sadly used by the client) and there it is not working. here's more details about the server:
ProFTPD 1.2.10 Server Command line to send FEAT 211-Features: 211-MDTM 211-REST STREAM 211-SIZE 211 End
dunno, if the problem is related to the proftpd or just bcoz it's a very old version. anyway as a workaround i just keep there empty text file :) i can send you privately credentials, if you want to try it by yourself.
Sorry, i was busy.
Like as already said, i fix the error by myself. You can find the fix in my branch.
I didn’t try your new version at this time and have currently no time to do it.
Sorry
FTP OS: Unix
FTP Server: ftpd
Computer OS: Raspberry 3+
Cannot upload file via uploadFile when destination folder is empty (no file present before uploading) The command "NLST" get "550 No files found." response and then throw an exception
Code:
Logs :
Connect()