{"action":"opened","issue":{"url":"https://api.github.com/repos/1up-lab/OneupUploaderBundle/issues/160","labels_url":"https://api.github.com/repos/1up-lab/OneupUploaderBundle/issues/160/labels{/name}","comments_url":"https://api.github.com/repos/1up-lab/OneupUploaderBundle/issues/160/comments","events_url":"https://api.github.com/repos/1up-lab/OneupUploaderBundle/issues/160/events","html_url":"https://github.com/1up-lab/OneupUploaderBundle/issues/160","id":54957411,"number":160,"title":"Cancellation Event?","user":{"login":"guilhermednt","id":860796,"avatar_url":"https://avatars.githubusercontent.com/u/860796?v=3","gravatar_id":"","url":"https://api.github.com/users/guilhermednt","html_url":"https://github.com/guilhermednt","followers_url":"https://api.github.com/users/guilhermednt/followers","following_url":"https://api.github.com/users/guilhermednt/following{/other_user}","gists_url":"https://api.github.com/users/guilhermednt/gists{/gist_id}","starred_url":"https://api.github.com/users/guilhermednt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guilhermednt/subscriptions","organizations_url":"https://api.github.com/users/guilhermednt/orgs","repos_url":"https://api.github.com/users/guilhermednt/repos","events_url":"https://api.github.com/users/guilhermednt/events{/privacy}","received_events_url":"https://api.github.com/users/guilhermednt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-20T23:44:37Z","updated_at":"2015-01-20T23:44:37Z","closed_at":null,"body":"I'm using `oneup_uploader.post_chunk_upload` to restrict users to only one active upload at a time. I do this by persisting an `OngoingUpload` entity containing `UserInterface`, the file's UUID and the timestamp of the last activity. To release an \"upload slot\" I just delete such entity when `isLast` is true.\r\n\r\nProblem is: when the user decides to cancel an upload I couldn't find a way to detect it and delete such entity and the partially uploaded file. Also I'm already using the `oneup_uploader_cancel` route.\r\n\r\nWouldn't a `post_cancel` event be handy or am I being dump and missing an easier way of doing this?"}}