{"action":"created","issue":{"url":"https://api.github.com/repos/goftp/server/issues/6","repository_url":"https://api.github.com/repos/goftp/server","labels_url":"https://api.github.com/repos/goftp/server/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/goftp/server/issues/6/comments","events_url":"https://api.github.com/repos/goftp/server/issues/6/events","html_url":"https://github.com/goftp/server/issues/6","id":148299111,"number":6,"title":"Reading username from the driver","user":{"login":"DanielSmedegaardBuus","id":384983,"avatar_url":"https://avatars.githubusercontent.com/u/384983?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielSmedegaardBuus","html_url":"https://github.com/DanielSmedegaardBuus","followers_url":"https://api.github.com/users/DanielSmedegaardBuus/followers","following_url":"https://api.github.com/users/DanielSmedegaardBuus/following{/other_user}","gists_url":"https://api.github.com/users/DanielSmedegaardBuus/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielSmedegaardBuus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielSmedegaardBuus/subscriptions","organizations_url":"https://api.github.com/users/DanielSmedegaardBuus/orgs","repos_url":"https://api.github.com/users/DanielSmedegaardBuus/repos","events_url":"https://api.github.com/users/DanielSmedegaardBuus/events{/privacy}","received_events_url":"https://api.github.com/users/DanielSmedegaardBuus/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-14T09:12:53Z","updated_at":"2016-05-10T08:42:54Z","closed_at":"2016-04-16T13:35:30Z","body":"Hi :)\r\n\r\nThis is my first project with golang. I'm using your ftp server to provide a way to upload CSV files with user data to be synced with data in Postgres. I've written a driver that receives such data and it works well. Thing is, where these data end up depends on who logged on to the FTP server.\r\n\r\nAFAICT, the only place this information is stored is in `conn.user` after a successful logon. I don't see how I would be able to get at that information from my driver without for example modifying `server/cmd.go` to send it along as an extra argument to `PutFile`, but then I'd be destroying the interface contract. Of course, this wouldn't matter in my particular example, but if at all possible, I'd like to avoid forking your project just to accomplish this.\r\n\r\nSince I'm so new to golang, I'm wondering if I'm missing something obvious here, so I'm just putting this question out there to see what you think :)\r\n\r\nThanks for your time!\r\n\r\nDaniel"},"comment":{"url":"https://api.github.com/repos/goftp/server/issues/comments/218094744","html_url":"https://github.com/goftp/server/issues/6#issuecomment-218094744","issue_url":"https://api.github.com/repos/goftp/server/issues/6","id":218094744,"user":{"login":"DanielSmedegaardBuus","id":384983,"avatar_url":"https://avatars.githubusercontent.com/u/384983?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielSmedegaardBuus","html_url":"https://github.com/DanielSmedegaardBuus","followers_url":"https://api.github.com/users/DanielSmedegaardBuus/followers","following_url":"https://api.github.com/users/DanielSmedegaardBuus/following{/other_user}","gists_url":"https://api.github.com/users/DanielSmedegaardBuus/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielSmedegaardBuus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielSmedegaardBuus/subscriptions","organizations_url":"https://api.github.com/users/DanielSmedegaardBuus/orgs","repos_url":"https://api.github.com/users/DanielSmedegaardBuus/repos","events_url":"https://api.github.com/users/DanielSmedegaardBuus/events{/privacy}","received_events_url":"https://api.github.com/users/DanielSmedegaardBuus/received_events","type":"User","site_admin":false},"created_at":"2016-05-10T08:42:54Z","updated_at":"2016-05-10T08:42:54Z","body":"Hi again :)\r\n\r\nAfter being busy with a different project, I'm now back on this one.\r\n\r\nAm I being retarded here, or does that commit not help? I mean, I still can't see how I'd access `LoginUser()` and `IsLogin()` from the driver. These methods are on the connection that is created when a user logs in, and the driver is a member on that connection. So, to get to either method, I'd have to be able to access the parent of the driver (i.e. something like `Driver.parent.conn.LoginUser()`), which isn't possible?\r\n\r\nAm I just being dumb?\r\n\r\nCheers :)\r\n"}}