{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/19563","labels_url":"https://api.github.com/repos/owncloud/core/issues/19563/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/19563/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/19563/events","html_url":"https://github.com/owncloud/core/issues/19563","id":109681342,"number":19563,"title":"Make file-upload.js app agnostic","user":{"login":"oparoz","id":323220,"avatar_url":"https://avatars.githubusercontent.com/u/323220?v=3","gravatar_id":"","url":"https://api.github.com/users/oparoz","html_url":"https://github.com/oparoz","followers_url":"https://api.github.com/users/oparoz/followers","following_url":"https://api.github.com/users/oparoz/following{/other_user}","gists_url":"https://api.github.com/users/oparoz/gists{/gist_id}","starred_url":"https://api.github.com/users/oparoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oparoz/subscriptions","organizations_url":"https://api.github.com/users/oparoz/orgs","repos_url":"https://api.github.com/users/oparoz/repos","events_url":"https://api.github.com/users/oparoz/events{/privacy}","received_events_url":"https://api.github.com/users/oparoz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/dev:ocp","name":"dev:ocp","color":"FF9966"},{"url":"https://api.github.com/repos/owncloud/core/labels/enhancement","name":"enhancement","color":"02e10c"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/owncloud/core/milestones/48","html_url":"https://github.com/owncloud/core/milestones/9.0-next","labels_url":"https://api.github.com/repos/owncloud/core/milestones/48/labels","id":1196845,"number":48,"title":"9.0-next","description":"","creator":{"login":"cmonteroluque","id":879976,"avatar_url":"https://avatars.githubusercontent.com/u/879976?v=3","gravatar_id":"","url":"https://api.github.com/users/cmonteroluque","html_url":"https://github.com/cmonteroluque","followers_url":"https://api.github.com/users/cmonteroluque/followers","following_url":"https://api.github.com/users/cmonteroluque/following{/other_user}","gists_url":"https://api.github.com/users/cmonteroluque/gists{/gist_id}","starred_url":"https://api.github.com/users/cmonteroluque/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmonteroluque/subscriptions","organizations_url":"https://api.github.com/users/cmonteroluque/orgs","repos_url":"https://api.github.com/users/cmonteroluque/repos","events_url":"https://api.github.com/users/cmonteroluque/events{/privacy}","received_events_url":"https://api.github.com/users/cmonteroluque/received_events","type":"User","site_admin":false},"open_issues":428,"closed_issues":2,"state":"open","created_at":"2015-07-07T14:21:23Z","updated_at":"2015-10-05T08:50:11Z","due_on":"2016-02-09T05:00:00Z","closed_at":null},"comments":5,"created_at":"2015-10-04T13:28:31Z","updated_at":"2015-10-05T10:15:22Z","closed_at":null,"body":"It's not too far away for the drag and drop feature, but the \"new\" button only works in Files, so if you want people to be able to upload from Gallery, Music, Notes, PMS, etc., that section needs to be rewritten with callbacks.\r\n\r\nList of Files specific calls\r\n```\r\nFiles.isFileNameValid(filename)\r\nFileList.inList(filename)\r\nFileList.lastAction\r\nFileList.getUniqueName(newname)\r\nFileList.checkName(name, newname, true)\r\nFileList.getCurrentDirectory()\r\nFileList.add()\r\n```\r\n----\r\n@PVince81 @rullzer @MorrisJobke @butonic "},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/145487785","html_url":"https://github.com/owncloud/core/issues/19563#issuecomment-145487785","issue_url":"https://api.github.com/repos/owncloud/core/issues/19563","id":145487785,"user":{"login":"DeepDiver1975","id":1005065,"avatar_url":"https://avatars.githubusercontent.com/u/1005065?v=3","gravatar_id":"","url":"https://api.github.com/users/DeepDiver1975","html_url":"https://github.com/DeepDiver1975","followers_url":"https://api.github.com/users/DeepDiver1975/followers","following_url":"https://api.github.com/users/DeepDiver1975/following{/other_user}","gists_url":"https://api.github.com/users/DeepDiver1975/gists{/gist_id}","starred_url":"https://api.github.com/users/DeepDiver1975/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeepDiver1975/subscriptions","organizations_url":"https://api.github.com/users/DeepDiver1975/orgs","repos_url":"https://api.github.com/users/DeepDiver1975/repos","events_url":"https://api.github.com/users/DeepDiver1975/events{/privacy}","received_events_url":"https://api.github.com/users/DeepDiver1975/received_events","type":"User","site_admin":false},"created_at":"2015-10-05T10:15:22Z","updated_at":"2015-10-05T10:15:22Z","body":"I have the big share code mess in mind - we are almost blocked with any kind of enhancement just because the share dialog is reused by apps.\r\n\r\nThe solution for 8.2 is to copy the mess to the apps - next step for the app developers will be to deal with it by either maintaining the mess or implement something on their own.\r\n\r\nI want to avoid something like that in the future - as long as we cannot guarantee a stable js api: apps shall not use it.\r\n\r\nIn addition the sidebar uses backbone and handlebars - this might not fit into all apps and would require custom code anyhow.\r\n\r\nTo me the client side of an app should be self-contained and reuse as little as possible.\r\nIntegration with the ownCloud server can either be on php side using OCP or by using http requests against public apis like WebDAV or OCS (application specific endpoints which are built using AppFramwork for sure as well - but this is app internal)."}}