{"action":"created","issue":{"url":"https://api.github.com/repos/amosavian/FileProvider/issues/88","repository_url":"https://api.github.com/repos/amosavian/FileProvider","labels_url":"https://api.github.com/repos/amosavian/FileProvider/issues/88/labels{/name}","comments_url":"https://api.github.com/repos/amosavian/FileProvider/issues/88/comments","events_url":"https://api.github.com/repos/amosavian/FileProvider/issues/88/events","html_url":"https://github.com/amosavian/FileProvider/issues/88","id":303616328,"number":88,"title":"FTP Upload TLS/SSL Error","user":{"login":"webmasterjunkie","id":1320031,"avatar_url":"https://avatars0.githubusercontent.com/u/1320031?v=4","gravatar_id":"","url":"https://api.github.com/users/webmasterjunkie","html_url":"https://github.com/webmasterjunkie","followers_url":"https://api.github.com/users/webmasterjunkie/followers","following_url":"https://api.github.com/users/webmasterjunkie/following{/other_user}","gists_url":"https://api.github.com/users/webmasterjunkie/gists{/gist_id}","starred_url":"https://api.github.com/users/webmasterjunkie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webmasterjunkie/subscriptions","organizations_url":"https://api.github.com/users/webmasterjunkie/orgs","repos_url":"https://api.github.com/users/webmasterjunkie/repos","events_url":"https://api.github.com/users/webmasterjunkie/events{/privacy}","received_events_url":"https://api.github.com/users/webmasterjunkie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-03-08T20:14:27Z","updated_at":"2018-03-12T11:34:56Z","closed_at":null,"author_association":"NONE","body":"I am getting an error when trying to upload using a file using a FTP handler. Here is the function that I am calling:\r\n\r\n```swift\r\nfunc sendDataToServer(_ file: URL){\r\n        let credentials = URLCredential(user: \"sample\", password: \"sample\", persistence: .forSession)\r\n        \r\n        let host = URL(string: \"ftp://ftp.site.com\")!\r\n        let ftpProvider = FTPFileProvider(baseURL: host, passive: false, credential: credentials)!\r\n        \r\n        ftpProvider.copyItem(localFile: file, to: \"/directory/test.csv\", overwrite: true, completionHandler: { (error) in\r\n            print(error?.localizedDescription ?? \"no error\")\r\n        })\r\n    }\r\n```\r\n\r\nOnce this is executed I get the following error:\r\n\r\n`Invalid sequence of commands (AUTH SSL/TLS required prior to authentication).`\r\n\r\nCould you advise on what the next steps would be for this?\r\n\r\nThanks in advance!"},"comment":{"url":"https://api.github.com/repos/amosavian/FileProvider/issues/comments/372280277","html_url":"https://github.com/amosavian/FileProvider/issues/88#issuecomment-372280277","issue_url":"https://api.github.com/repos/amosavian/FileProvider/issues/88","id":372280277,"user":{"login":"amosavian","id":6725192,"avatar_url":"https://avatars3.githubusercontent.com/u/6725192?v=4","gravatar_id":"","url":"https://api.github.com/users/amosavian","html_url":"https://github.com/amosavian","followers_url":"https://api.github.com/users/amosavian/followers","following_url":"https://api.github.com/users/amosavian/following{/other_user}","gists_url":"https://api.github.com/users/amosavian/gists{/gist_id}","starred_url":"https://api.github.com/users/amosavian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amosavian/subscriptions","organizations_url":"https://api.github.com/users/amosavian/orgs","repos_url":"https://api.github.com/users/amosavian/repos","events_url":"https://api.github.com/users/amosavian/events{/privacy}","received_events_url":"https://api.github.com/users/amosavian/received_events","type":"User","site_admin":false},"created_at":"2018-03-12T11:34:56Z","updated_at":"2018-03-12T11:34:56Z","author_association":"OWNER","body":"I shall check when I got free. Thanks"}}
{"actor":{"display_login":"amosavian"}}