ashkulz / NppFTP

Plugin for Notepad++ allowing FTP, FTPS, FTPES and SFTP communications
https://ashkulz.github.io/NppFTP/
320 stars 93 forks source link

Upload on save fails if path contains a ":" #193

Open l-spiecker opened 6 years ago

l-spiecker commented 6 years ago

Description of the Issue

The auto-upload fails if path contains a ":". Maybe because in the local path in AppData the colon will be encoded as an underscore: "_".

Steps to Reproduce the Issue

  1. Create a directory on a linux system with a ":" in its name.
  2. Connect and load a file out of the created directory.
  3. Save file and upload fails.
  4. Manual upload should work.
chcg commented 6 years ago

Probably some workaround is needed for reserved characters, see https://msdn.microsoft.com/en-us/library/aa365247.aspx#basic_naming_conventions%22%20target=%22_new%22.

The following reserved characters:

< (less than)
> (greater than)
: (colon)
" (double quote)
/ (forward slash)
\ (backslash)
| (vertical bar or pipe)
? (question mark)
* (asterisk)
stemaste62 commented 6 years ago

Hi, yes, the problem is the special character that is necessary to connect to IIS FTP. The pipe character | divide canonical name FTP and name account for IIS to recognize a right service. Example account ftp: ftp.pippo.com|userone There is no other way to write it Now, if you want to work with IIS, you cannot save in local cache with this syntax, this is banaly wrong.

stemaste62 commented 6 years ago

The solution for the moment: Enter in profile settings Select the profile name Select the tab Cache Insert a valid directory in Local path Insert a slash / or other in External path Click on Add new button Work

anytimehh commented 5 years ago

connect sftp of windows,when save file: Upload of D:\temp\D\xampp\htdocs\test.php failed D =D: why?