{"action":"closed","issue":{"url":"https://api.github.com/repos/ShareX/ShareX/issues/2319","repository_url":"https://api.github.com/repos/ShareX/ShareX","labels_url":"https://api.github.com/repos/ShareX/ShareX/issues/2319/labels{/name}","comments_url":"https://api.github.com/repos/ShareX/ShareX/issues/2319/comments","events_url":"https://api.github.com/repos/ShareX/ShareX/issues/2319/events","html_url":"https://github.com/ShareX/ShareX/issues/2319","id":210247384,"number":2319,"title":"SFTP destination keypath no longer accepts keys on network drives","user":{"login":"snownel","id":26028100,"avatar_url":"https://avatars.githubusercontent.com/u/26028100?v=3","gravatar_id":"","url":"https://api.github.com/users/snownel","html_url":"https://github.com/snownel","followers_url":"https://api.github.com/users/snownel/followers","following_url":"https://api.github.com/users/snownel/following{/other_user}","gists_url":"https://api.github.com/users/snownel/gists{/gist_id}","starred_url":"https://api.github.com/users/snownel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snownel/subscriptions","organizations_url":"https://api.github.com/users/snownel/orgs","repos_url":"https://api.github.com/users/snownel/repos","events_url":"https://api.github.com/users/snownel/events{/privacy}","received_events_url":"https://api.github.com/users/snownel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-02-25T17:09:12Z","updated_at":"2017-02-25T17:27:07Z","closed_at":"2017-02-25T17:27:07Z","body":"When using the SFTP destination with a keyfile, the keypath no longer accepts keys on network drives as of 11.6 - the only drives that appear in the file selector are local ones, and the network drives are not even shown at all. This is a problem because I store my private keyfile on a NAS instead of on each local machine. This was not the case in 11.5 and earlier but nothing in the changelog indicates a change to the SFTP uploader.\r\n\r\nWhen trying to upload, this is the debug log:\r\n\r\n> 2017-02-25 11:54:18.624 - Task in queue. Job: Job, Type: File, Host: FTP\r\n> 2017-02-25 11:54:18.630 - Exception:\r\n> System.IO.FileNotFoundException: Key path is invalid.\r\n> File name: 'N:\\ShareX\\Keys\\ssh-private-key-openssh.key'\r\n>    at ShareX.UploadersLib.FileUploaders.SFTP.Connect()\r\n>    at ShareX.UploadersLib.FileUploaders.SFTP.UploadStream(Stream stream, String remotePath)\r\n>    at ShareX.UploadersLib.FileUploaders.SFTP.Upload(Stream stream, String fileName)\r\n>    at ShareX.WorkerTask.UploadData(IGenericUploaderService service, Stream stream, String fileName)\r\n>    at ShareX.WorkerTask.DoUpload(Int32 retry)\r\n> 2017-02-25 11:54:18.638 - Task status: Preparing\r\n> 2017-02-25 11:54:18.643 - Upload started. Filename: ddgMT.png\r\n> 2017-02-25 11:54:18.649 - Task failed. Filename: ddgMT.png, Errors:\r\n> System.IO.FileNotFoundException: Key path is invalid.\r\n> File name: 'N:\\ShareX\\Keys\\ssh-private-key-openssh.key'\r\n>    at ShareX.UploadersLib.FileUploaders.SFTP.Connect()\r\n>    at ShareX.UploadersLib.FileUploaders.SFTP.UploadStream(Stream stream, String remotePath)\r\n>    at ShareX.UploadersLib.FileUploaders.SFTP.Upload(Stream stream, String fileName)\r\n>    at ShareX.WorkerTask.UploadData(IGenericUploaderService service, Stream stream, String fileName)\r\n>    at ShareX.WorkerTask.DoUpload(Int32 retry)\r\n\r\nMoving the key to a local drive fixes this problem but is a poor workaround. Why can ShareX suddenly not handle network drives?"}}
{"actor":{"display_login":"snownel"}}