{"action":"closed","issue":{"url":"https://api.github.com/repos/akvo/akvo-rsr/issues/1760","labels_url":"https://api.github.com/repos/akvo/akvo-rsr/issues/1760/labels{/name}","comments_url":"https://api.github.com/repos/akvo/akvo-rsr/issues/1760/comments","events_url":"https://api.github.com/repos/akvo/akvo-rsr/issues/1760/events","html_url":"https://github.com/akvo/akvo-rsr/issues/1760","id":102354116,"number":1760,"title":"Better handling of photo and document uploads","user":{"login":"KasperBrandt","id":1497367,"avatar_url":"https://avatars.githubusercontent.com/u/1497367?v=3","gravatar_id":"","url":"https://api.github.com/users/KasperBrandt","html_url":"https://github.com/KasperBrandt","followers_url":"https://api.github.com/users/KasperBrandt/followers","following_url":"https://api.github.com/users/KasperBrandt/following{/other_user}","gists_url":"https://api.github.com/users/KasperBrandt/gists{/gist_id}","starred_url":"https://api.github.com/users/KasperBrandt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KasperBrandt/subscriptions","organizations_url":"https://api.github.com/users/KasperBrandt/orgs","repos_url":"https://api.github.com/users/KasperBrandt/repos","events_url":"https://api.github.com/users/KasperBrandt/events{/privacy}","received_events_url":"https://api.github.com/users/KasperBrandt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/akvo/akvo-rsr/labels/Needs%20Review","name":"Needs Review","color":"fad8c7"},{"url":"https://api.github.com/repos/akvo/akvo-rsr/labels/Priority%201","name":"Priority 1","color":"e11d21"},{"url":"https://api.github.com/repos/akvo/akvo-rsr/labels/Type:%20Project%20editor","name":"Type: Project editor","color":"f2f2c1"}],"state":"closed","locked":false,"assignee":{"login":"KasperBrandt","id":1497367,"avatar_url":"https://avatars.githubusercontent.com/u/1497367?v=3","gravatar_id":"","url":"https://api.github.com/users/KasperBrandt","html_url":"https://github.com/KasperBrandt","followers_url":"https://api.github.com/users/KasperBrandt/followers","following_url":"https://api.github.com/users/KasperBrandt/following{/other_user}","gists_url":"https://api.github.com/users/KasperBrandt/gists{/gist_id}","starred_url":"https://api.github.com/users/KasperBrandt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KasperBrandt/subscriptions","organizations_url":"https://api.github.com/users/KasperBrandt/orgs","repos_url":"https://api.github.com/users/KasperBrandt/repos","events_url":"https://api.github.com/users/KasperBrandt/events{/privacy}","received_events_url":"https://api.github.com/users/KasperBrandt/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/akvo/akvo-rsr/milestones/61","html_url":"https://github.com/akvo/akvo-rsr/milestones/3.10%20Nouakchott","labels_url":"https://api.github.com/repos/akvo/akvo-rsr/milestones/61/labels","id":1309770,"number":61,"title":"3.10 Nouakchott","description":"Main issues of this milestone:\r\n- IATI import refactor and improvements\r\n- Project editor refactor and improvements","creator":{"login":"KasperBrandt","id":1497367,"avatar_url":"https://avatars.githubusercontent.com/u/1497367?v=3","gravatar_id":"","url":"https://api.github.com/users/KasperBrandt","html_url":"https://github.com/KasperBrandt","followers_url":"https://api.github.com/users/KasperBrandt/followers","following_url":"https://api.github.com/users/KasperBrandt/following{/other_user}","gists_url":"https://api.github.com/users/KasperBrandt/gists{/gist_id}","starred_url":"https://api.github.com/users/KasperBrandt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KasperBrandt/subscriptions","organizations_url":"https://api.github.com/users/KasperBrandt/orgs","repos_url":"https://api.github.com/users/KasperBrandt/repos","events_url":"https://api.github.com/users/KasperBrandt/events{/privacy}","received_events_url":"https://api.github.com/users/KasperBrandt/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":3,"state":"open","created_at":"2015-09-17T06:14:18Z","updated_at":"2015-12-15T10:33:00Z","due_on":"2015-12-15T21:00:00Z","closed_at":null},"comments":0,"created_at":"2015-08-21T11:09:10Z","updated_at":"2015-12-15T10:33:00Z","closed_at":"2015-12-15T10:33:00Z","body":"## Test plan\r\nGIVEN that a user decides to upload a photo or document in the project editor\r\nWHEN a file is selected\r\nTHEN the user should see a progress bar\r\nAND the upload should happen immediately\r\n\r\nGIVEN that a user decides to upload a photo in the project editor\r\nWHEN the photo is larger than 2 MB\r\nTHEN an error message should be displayed\r\n\r\nGIVEN that a user decides to upload a document in the project editor\r\nWHEN the document is larger than 5 MB\r\nTHEN an error message should be displayed\r\n\r\n## Issue description\r\n1. [x] Show progress bar\r\n2. [x] Check for file size up front"}}