{"action":"created","issue":{"url":"https://api.github.com/repos/flexxui/flexx/issues/588","repository_url":"https://api.github.com/repos/flexxui/flexx","labels_url":"https://api.github.com/repos/flexxui/flexx/issues/588/labels{/name}","comments_url":"https://api.github.com/repos/flexxui/flexx/issues/588/comments","events_url":"https://api.github.com/repos/flexxui/flexx/issues/588/events","html_url":"https://github.com/flexxui/flexx/issues/588","id":496456524,"node_id":"MDU6SXNzdWU0OTY0NTY1MjQ=","number":588,"title":"Example of uploading a file?","user":{"login":"matkuki","id":10289651,"node_id":"MDQ6VXNlcjEwMjg5NjUx","avatar_url":"https://avatars0.githubusercontent.com/u/10289651?v=4","gravatar_id":"","url":"https://api.github.com/users/matkuki","html_url":"https://github.com/matkuki","followers_url":"https://api.github.com/users/matkuki/followers","following_url":"https://api.github.com/users/matkuki/following{/other_user}","gists_url":"https://api.github.com/users/matkuki/gists{/gist_id}","starred_url":"https://api.github.com/users/matkuki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matkuki/subscriptions","organizations_url":"https://api.github.com/users/matkuki/orgs","repos_url":"https://api.github.com/users/matkuki/repos","events_url":"https://api.github.com/users/matkuki/events{/privacy}","received_events_url":"https://api.github.com/users/matkuki/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2019-09-20T17:04:24Z","updated_at":"2019-09-25T21:47:44Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nAre there any examples of uploading a file to the server that is running the `flexx` application?\r\nA button that opens a file browser to select a local file from disk and then upload it to a specific directory on the server.\r\nAny hints/solutions/examples would be greatly appreciated.\r\n\r\nMatic"},"comment":{"url":"https://api.github.com/repos/flexxui/flexx/issues/comments/535235114","html_url":"https://github.com/flexxui/flexx/issues/588#issuecomment-535235114","issue_url":"https://api.github.com/repos/flexxui/flexx/issues/588","id":535235114,"node_id":"MDEyOklzc3VlQ29tbWVudDUzNTIzNTExNA==","user":{"login":"matkuki","id":10289651,"node_id":"MDQ6VXNlcjEwMjg5NjUx","avatar_url":"https://avatars0.githubusercontent.com/u/10289651?v=4","gravatar_id":"","url":"https://api.github.com/users/matkuki","html_url":"https://github.com/matkuki","followers_url":"https://api.github.com/users/matkuki/followers","following_url":"https://api.github.com/users/matkuki/following{/other_user}","gists_url":"https://api.github.com/users/matkuki/gists{/gist_id}","starred_url":"https://api.github.com/users/matkuki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matkuki/subscriptions","organizations_url":"https://api.github.com/users/matkuki/orgs","repos_url":"https://api.github.com/users/matkuki/repos","events_url":"https://api.github.com/users/matkuki/events{/privacy}","received_events_url":"https://api.github.com/users/matkuki/received_events","type":"User","site_admin":false},"created_at":"2019-09-25T21:47:44Z","updated_at":"2019-09-25T21:47:44Z","author_association":"NONE","body":"@jrversteegh\r\nI agree completely. I have tried your example, but I only get a `LineEdit` when putting your `FileInput` class into a widget like so:\r\n```python\r\nclass App(flx.PyWidget):\r\n    def init(self):\r\n        self.file_browser = FileInput()\r\n```\r\nand the serving the app. Clicking or entering text doesn't do anything (I put print statements in all the class methods). This is a screenshot of what I get:\r\n![image](https://user-images.githubusercontent.com/10289651/65641938-5acb6380-dfee-11e9-935b-4b8efc342a1a.png)\r\nI would love to do the upload in more idiomatic flexx, but I don't know what to change in your example code.\r\nCould you help me to proceed?"}}
{"actor":{"display_login":"matkuki"}}