{"action":"created","issue":{"url":"https://api.github.com/repos/nextcloud/server/issues/6841","repository_url":"https://api.github.com/repos/nextcloud/server","labels_url":"https://api.github.com/repos/nextcloud/server/issues/6841/labels{/name}","comments_url":"https://api.github.com/repos/nextcloud/server/issues/6841/comments","events_url":"https://api.github.com/repos/nextcloud/server/issues/6841/events","html_url":"https://github.com/nextcloud/server/issues/6841","id":265737662,"number":6841,"title":"Feature request: offer one-time download links","user":{"login":"jospoortvliet","id":551757,"avatar_url":"https://avatars3.githubusercontent.com/u/551757?v=4","gravatar_id":"","url":"https://api.github.com/users/jospoortvliet","html_url":"https://github.com/jospoortvliet","followers_url":"https://api.github.com/users/jospoortvliet/followers","following_url":"https://api.github.com/users/jospoortvliet/following{/other_user}","gists_url":"https://api.github.com/users/jospoortvliet/gists{/gist_id}","starred_url":"https://api.github.com/users/jospoortvliet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jospoortvliet/subscriptions","organizations_url":"https://api.github.com/users/jospoortvliet/orgs","repos_url":"https://api.github.com/users/jospoortvliet/repos","events_url":"https://api.github.com/users/jospoortvliet/events{/privacy}","received_events_url":"https://api.github.com/users/jospoortvliet/received_events","type":"User","site_admin":false},"labels":[{"id":386379233,"url":"https://api.github.com/repos/nextcloud/server/labels/enhancement","name":"enhancement","color":"0e8a16","default":true},{"id":389031994,"url":"https://api.github.com/repos/nextcloud/server/labels/feature:%20sharing","name":"feature: sharing","color":"c2e0c6","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-10-16T11:34:09Z","updated_at":"2017-12-11T16:21:27Z","closed_at":null,"author_association":"OWNER","body":"Sometimes you want to offer a download to a recipient, but have it work only once. An expiration date then doesn't do the trick.\r\n\r\nWhy would you want this?\r\n* Let the recipient download the file/folder but remove the share after they got it. Expiration date only works if you know when they will get the file. This way you don't have to clean up share link.\r\n* Make sure the recipient and ONLY the recipient can download: sent link, check if person downloaded, link has disappeared already. Safe!"},"comment":{"url":"https://api.github.com/repos/nextcloud/server/issues/comments/350774762","html_url":"https://github.com/nextcloud/server/issues/6841#issuecomment-350774762","issue_url":"https://api.github.com/repos/nextcloud/server/issues/6841","id":350774762,"user":{"login":"jospoortvliet","id":551757,"avatar_url":"https://avatars3.githubusercontent.com/u/551757?v=4","gravatar_id":"","url":"https://api.github.com/users/jospoortvliet","html_url":"https://github.com/jospoortvliet","followers_url":"https://api.github.com/users/jospoortvliet/followers","following_url":"https://api.github.com/users/jospoortvliet/following{/other_user}","gists_url":"https://api.github.com/users/jospoortvliet/gists{/gist_id}","starred_url":"https://api.github.com/users/jospoortvliet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jospoortvliet/subscriptions","organizations_url":"https://api.github.com/users/jospoortvliet/orgs","repos_url":"https://api.github.com/users/jospoortvliet/repos","events_url":"https://api.github.com/users/jospoortvliet/events{/privacy}","received_events_url":"https://api.github.com/users/jospoortvliet/received_events","type":"User","site_admin":false},"created_at":"2017-12-11T16:21:27Z","updated_at":"2017-12-11T16:21:27Z","author_association":"OWNER","body":"Well, the use case I think is clear: you create a public link and want it to go away once the recipient has downloaded the file, without having to go and check up with that person.\r\n\r\nSome thoughts:\r\n* We show an Activities thing when a file is downloaded. This doesn't trigger on preview generation does it? Perhaps the same thing that triggers the Activity can trigger the removal of the shared link.\r\n* a grace period makes sense in case a download went wrong. So once download is initiated, give it 10 minutes at least (and until the next Cron run, hehe).\r\n\r\nI personally frequently share files by public link for a one-time use case: a screenshot you want to show and other stuff. Automatic cleanup of those links would be nice...\r\n\r\n"}}
{"actor":{"display_login":"jospoortvliet"}}