{"action":"created","issue":{"url":"https://api.github.com/repos/haiwen/seadroid/issues/406","labels_url":"https://api.github.com/repos/haiwen/seadroid/issues/406/labels{/name}","comments_url":"https://api.github.com/repos/haiwen/seadroid/issues/406/comments","events_url":"https://api.github.com/repos/haiwen/seadroid/issues/406/events","html_url":"https://github.com/haiwen/seadroid/issues/406","id":98332734,"number":406,"title":"Upload via Share intent","user":{"login":"christophwolff","id":2046613,"avatar_url":"https://avatars.githubusercontent.com/u/2046613?v=3","gravatar_id":"","url":"https://api.github.com/users/christophwolff","html_url":"https://github.com/christophwolff","followers_url":"https://api.github.com/users/christophwolff/followers","following_url":"https://api.github.com/users/christophwolff/following{/other_user}","gists_url":"https://api.github.com/users/christophwolff/gists{/gist_id}","starred_url":"https://api.github.com/users/christophwolff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christophwolff/subscriptions","organizations_url":"https://api.github.com/users/christophwolff/orgs","repos_url":"https://api.github.com/users/christophwolff/repos","events_url":"https://api.github.com/users/christophwolff/events{/privacy}","received_events_url":"https://api.github.com/users/christophwolff/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-31T07:31:38Z","updated_at":"2015-07-31T09:17:18Z","closed_at":null,"body":"It is not possible to upload files from other Apps. i.e. from a share intent from one APP to seafile. Like Google drive. Any Chance of implementing this?"},"comment":{"url":"https://api.github.com/repos/haiwen/seadroid/issues/comments/126619202","html_url":"https://github.com/haiwen/seadroid/issues/406#issuecomment-126619202","issue_url":"https://api.github.com/repos/haiwen/seadroid/issues/406","id":126619202,"user":{"login":"forouher","id":676900,"avatar_url":"https://avatars.githubusercontent.com/u/676900?v=3","gravatar_id":"","url":"https://api.github.com/users/forouher","html_url":"https://github.com/forouher","followers_url":"https://api.github.com/users/forouher/followers","following_url":"https://api.github.com/users/forouher/following{/other_user}","gists_url":"https://api.github.com/users/forouher/gists{/gist_id}","starred_url":"https://api.github.com/users/forouher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forouher/subscriptions","organizations_url":"https://api.github.com/users/forouher/orgs","repos_url":"https://api.github.com/users/forouher/repos","events_url":"https://api.github.com/users/forouher/events{/privacy}","received_events_url":"https://api.github.com/users/forouher/received_events","type":"User","site_admin":false},"created_at":"2015-07-31T09:17:18Z","updated_at":"2015-07-31T09:17:18Z","body":"I can reproduce the issue:\r\n\r\n\r\nSteps to reproduce (using Seadroid 1.8.1):\r\n1. Go to the \"Downloads\" app\r\n2. Select some file\r\n3. share that file with Seafile\r\n4. seafile crashes\r\n\r\n```\r\n07-31 11:14:52.132  18592-18592/com.seafile.seadroid2 E/CursorWindow﹕ Failed to read row 0, column -1 from a CursorWindow which has 1 rows, 7 columns.\r\n07-31 11:14:52.132  18592-18592/com.seafile.seadroid2 D/AndroidRuntime﹕ Shutting down VM\r\n07-31 11:14:52.133  18592-18592/com.seafile.seadroid2 E/AndroidRuntime﹕ FATAL EXCEPTION: main\r\n    Process: com.seafile.seadroid2, PID: 18592\r\n    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.seafile.seadroid2/com.seafile.seadroid2.ui.activity.ShareToSeafileActivity}: java.lang.IllegalStateException: Couldn't read row 0, col -1 from CursorWindow.  Make sure the Cursor is initialized correctly before accessing data from it.\r\n            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2356)\r\n            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2418)\r\n            at android.app.ActivityThread.access$900(ActivityThread.java:154)\r\n            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)\r\n            at android.os.Handler.dispatchMessage(Handler.java:102)\r\n            at android.os.Looper.loop(Looper.java:135)\r\n            at android.app.ActivityThread.main(ActivityThread.java:5289)\r\n            at java.lang.reflect.Method.invoke(Native Method)\r\n            at java.lang.reflect.Method.invoke(Method.java:372)\r\n            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)\r\n            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)\r\n     Caused by: java.lang.IllegalStateException: Couldn't read row 0, col -1 from CursorWindow.  Make sure the Cursor is initialized correctly before accessing data from it.\r\n            at android.database.CursorWindow.nativeGetString(Native Method)\r\n            at android.database.CursorWindow.getString(CursorWindow.java:438)\r\n            at android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:51)\r\n            at android.database.CursorWrapper.getString(CursorWrapper.java:114)\r\n            at com.seafile.seadroid2.ui.activity.ShareToSeafileActivity.getSharedFilePath(ShareToSeafileActivity.java:85)\r\n            at com.seafile.seadroid2.ui.activity.ShareToSeafileActivity.onCreate(ShareToSeafileActivity.java:57)\r\n            at android.app.Activity.performCreate(Activity.java:5990)\r\n            at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)\r\n            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2309)\r\n            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2418)\r\n            at android.app.ActivityThread.access$900(ActivityThread.java:154)\r\n            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)\r\n            at android.os.Handler.dispatchMessage(Handler.java:102)\r\n            at android.os.Looper.loop(Looper.java:135)\r\n            at android.app.ActivityThread.main(ActivityThread.java:5289)\r\n            at java.lang.reflect.Method.invoke(Native Method)\r\n            at java.lang.reflect.Method.invoke(Method.java:372)\r\n            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)\r\n            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)\r\n```"}}