{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/20518","labels_url":"https://api.github.com/repos/owncloud/core/issues/20518/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/20518/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/20518/events","html_url":"https://github.com/owncloud/core/issues/20518","id":117063437,"number":20518,"title":"exceeded quota user still upload file in external storage","user":{"login":"supnobita","id":15864528,"avatar_url":"https://avatars.githubusercontent.com/u/15864528?v=3","gravatar_id":"","url":"https://api.github.com/users/supnobita","html_url":"https://github.com/supnobita","followers_url":"https://api.github.com/users/supnobita/followers","following_url":"https://api.github.com/users/supnobita/following{/other_user}","gists_url":"https://api.github.com/users/supnobita/gists{/gist_id}","starred_url":"https://api.github.com/users/supnobita/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/supnobita/subscriptions","organizations_url":"https://api.github.com/users/supnobita/orgs","repos_url":"https://api.github.com/users/supnobita/repos","events_url":"https://api.github.com/users/supnobita/events{/privacy}","received_events_url":"https://api.github.com/users/supnobita/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/owncloud/core/labels/quota","name":"quota","color":"407de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-11-16T06:43:15Z","updated_at":"2015-11-17T07:27:25Z","closed_at":null,"body":"Hi,\r\nI config owncloud with swift (external storage). I create user: demo, and set 10mb for his quota. But when he can upload > 10mb file on swift storage ????\r\nHow can i stop him upload biger file than his quota ?\r\nSteps to reproduce:\r\n1) set up swift as a external storage\r\n2) create a user, set qouta 10mb\r\n3) upload file that has size 15mb on external storage\r\nExpected behaviour\r\nFile over qouta should not upload\r\nActual behaviour\r\nI can upload unlimited file\r\n"},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/157298496","html_url":"https://github.com/owncloud/core/issues/20518#issuecomment-157298496","issue_url":"https://api.github.com/repos/owncloud/core/issues/20518","id":157298496,"user":{"login":"PVince81","id":277525,"avatar_url":"https://avatars.githubusercontent.com/u/277525?v=3","gravatar_id":"","url":"https://api.github.com/users/PVince81","html_url":"https://github.com/PVince81","followers_url":"https://api.github.com/users/PVince81/followers","following_url":"https://api.github.com/users/PVince81/following{/other_user}","gists_url":"https://api.github.com/users/PVince81/gists{/gist_id}","starred_url":"https://api.github.com/users/PVince81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PVince81/subscriptions","organizations_url":"https://api.github.com/users/PVince81/orgs","repos_url":"https://api.github.com/users/PVince81/repos","events_url":"https://api.github.com/users/PVince81/events{/privacy}","received_events_url":"https://api.github.com/users/PVince81/received_events","type":"User","site_admin":false},"created_at":"2015-11-17T07:27:25Z","updated_at":"2015-11-17T07:27:25Z","body":"Ah, that explains why it doesn't work. Since the admin is the owner of the storage then it will use the admin's quota. There is no way to make this work directly from sharing because ownCloud doesn't know which file belongs to which user, so it is impossible to calculate how much a single user has used.\r\n\r\nInstead of using shares, you could try setting up a system-wide storage in the admin page, then select the target users in the right-most field (applicable). This means that every user will receive a mount point and the total size will be calculated based on it.\r\n\r\nBut in both cases it seems that it means that every file inside the mount point is counted in the quota of every user. Is that what you wanted to achieve ?\r\n"}}