{"action":"created","comment":{"url":"https://api.github.com/repos/edx/edx-ora2/pulls/comments/37810547","id":37810547,"diff_hunk":"@@ -0,0 +1,118 @@\n+<openassessment file_upload_type=\"image\" submission_due=\"2035-03-11T18:20\">","path":"openassessment/xblock/static/xml/file_upload.xml","position":1,"original_position":1,"commit_id":"acd0cb03a344fc6fdee69d0b51aeb13c46622388","original_commit_id":"acd0cb03a344fc6fdee69d0b51aeb13c46622388","user":{"login":"xcompass","id":465548,"avatar_url":"https://avatars.githubusercontent.com/u/465548?v=3","gravatar_id":"","url":"https://api.github.com/users/xcompass","html_url":"https://github.com/xcompass","followers_url":"https://api.github.com/users/xcompass/followers","following_url":"https://api.github.com/users/xcompass/following{/other_user}","gists_url":"https://api.github.com/users/xcompass/gists{/gist_id}","starred_url":"https://api.github.com/users/xcompass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xcompass/subscriptions","organizations_url":"https://api.github.com/users/xcompass/orgs","repos_url":"https://api.github.com/users/xcompass/repos","events_url":"https://api.github.com/users/xcompass/events{/privacy}","received_events_url":"https://api.github.com/users/xcompass/received_events","type":"User","site_admin":false},"body":"Those are for the tests in workbench and used to generate some scenarios.","created_at":"2015-08-24T22:04:33Z","updated_at":"2015-08-24T22:04:33Z","html_url":"https://github.com/edx/edx-ora2/pull/708#discussion_r37810547","pull_request_url":"https://api.github.com/repos/edx/edx-ora2/pulls/708","_links":{"self":{"href":"https://api.github.com/repos/edx/edx-ora2/pulls/comments/37810547"},"html":{"href":"https://github.com/edx/edx-ora2/pull/708#discussion_r37810547"},"pull_request":{"href":"https://api.github.com/repos/edx/edx-ora2/pulls/708"}}},"pull_request":{"url":"https://api.github.com/repos/edx/edx-ora2/pulls/708","id":38938460,"html_url":"https://github.com/edx/edx-ora2/pull/708","diff_url":"https://github.com/edx/edx-ora2/pull/708.diff","patch_url":"https://github.com/edx/edx-ora2/pull/708.patch","issue_url":"https://api.github.com/repos/edx/edx-ora2/issues/708","number":708,"state":"open","locked":false,"title":"Allow file upload for PDF and arbitrary file types in addition to image","user":{"login":"xcompass","id":465548,"avatar_url":"https://avatars.githubusercontent.com/u/465548?v=3","gravatar_id":"","url":"https://api.github.com/users/xcompass","html_url":"https://github.com/xcompass","followers_url":"https://api.github.com/users/xcompass/followers","following_url":"https://api.github.com/users/xcompass/following{/other_user}","gists_url":"https://api.github.com/users/xcompass/gists{/gist_id}","starred_url":"https://api.github.com/users/xcompass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xcompass/subscriptions","organizations_url":"https://api.github.com/users/xcompass/orgs","repos_url":"https://api.github.com/users/xcompass/repos","events_url":"https://api.github.com/users/xcompass/events{/privacy}","received_events_url":"https://api.github.com/users/xcompass/received_events","type":"User","site_admin":false},"body":"This PR is based on Stanford's work for extending uploadable files to more types. The current upload functionality only allows images.\r\n\r\nNow the course author can set \"image\", \"PDF and image\" or \"Custom White List\" file to be allowed to upload along with submission. When \"image\" or \"PDF and image\" file type is selected, the file mime type is checked against a whitelist. When \"Custom White List\" is selected, a white list input box is shown for a list of allowed file extensions. As there is potential for students to upload malicious files, an warning message is printed in the help line. This feature allow instructors to enable students uploading their course work other than images. \r\n\r\nNote: This PR added additional fields to ORA2 XBlock. So \"paver update_db\" is required.","created_at":"2015-07-01T00:31:00Z","updated_at":"2015-08-24T22:04:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f11d3f4781f0a57842d44b70fc26d6266a2b5162","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/edx/edx-ora2/pulls/708/commits","review_comments_url":"https://api.github.com/repos/edx/edx-ora2/pulls/708/comments","review_comment_url":"https://api.github.com/repos/edx/edx-ora2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/edx/edx-ora2/issues/708/comments","statuses_url":"https://api.github.com/repos/edx/edx-ora2/statuses/acd0cb03a344fc6fdee69d0b51aeb13c46622388","head":{"label":"ubc:xcompass/pu/file-upload","ref":"xcompass/pu/file-upload","sha":"acd0cb03a344fc6fdee69d0b51aeb13c46622388","user":{"login":"ubc","id":1396118,"avatar_url":"https://avatars.githubusercontent.com/u/1396118?v=3","gravatar_id":"","url":"https://api.github.com/users/ubc","html_url":"https://github.com/ubc","followers_url":"https://api.github.com/users/ubc/followers","following_url":"https://api.github.com/users/ubc/following{/other_user}","gists_url":"https://api.github.com/users/ubc/gists{/gist_id}","starred_url":"https://api.github.com/users/ubc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ubc/subscriptions","organizations_url":"https://api.github.com/users/ubc/orgs","repos_url":"https://api.github.com/users/ubc/repos","events_url":"https://api.github.com/users/ubc/events{/privacy}","received_events_url":"https://api.github.com/users/ubc/received_events","type":"Organization","site_admin":false},"repo":{"id":33887562,"name":"edx-ora2","full_name":"ubc/edx-ora2","owner":{"login":"ubc","id":1396118,"avatar_url":"https://avatars.githubusercontent.com/u/1396118?v=3","gravatar_id":"","url":"https://api.github.com/users/ubc","html_url":"https://github.com/ubc","followers_url":"https://api.github.com/users/ubc/followers","following_url":"https://api.github.com/users/ubc/following{/other_user}","gists_url":"https://api.github.com/users/ubc/gists{/gist_id}","starred_url":"https://api.github.com/users/ubc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ubc/subscriptions","organizations_url":"https://api.github.com/users/ubc/orgs","repos_url":"https://api.github.com/users/ubc/repos","events_url":"https://api.github.com/users/ubc/events{/privacy}","received_events_url":"https://api.github.com/users/ubc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ubc/edx-ora2","description":"Open Response Assessment Suite","fork":true,"url":"https://api.github.com/repos/ubc/edx-ora2","forks_url":"https://api.github.com/repos/ubc/edx-ora2/forks","keys_url":"https://api.github.com/repos/ubc/edx-ora2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ubc/edx-ora2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ubc/edx-ora2/teams","hooks_url":"https://api.github.com/repos/ubc/edx-ora2/hooks","issue_events_url":"https://api.github.com/repos/ubc/edx-ora2/issues/events{/number}","events_url":"https://api.github.com/repos/ubc/edx-ora2/events","assignees_url":"https://api.github.com/repos/ubc/edx-ora2/assignees{/user}","branches_url":"https://api.github.com/repos/ubc/edx-ora2/branches{/branch}","tags_url":"https://api.github.com/repos/ubc/edx-ora2/tags","blobs_url":"https://api.github.com/repos/ubc/edx-ora2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ubc/edx-ora2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ubc/edx-ora2/git/refs{/sha}","trees_url":"https://api.github.com/repos/ubc/edx-ora2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ubc/edx-ora2/statuses/{sha}","languages_url":"https://api.github.com/repos/ubc/edx-ora2/languages","stargazers_url":"https://api.github.com/repos/ubc/edx-ora2/stargazers","contributors_url":"https://api.github.com/repos/ubc/edx-ora2/contributors","subscribers_url":"https://api.github.com/repos/ubc/edx-ora2/subscribers","subscription_url":"https://api.github.com/repos/ubc/edx-ora2/subscription","commits_url":"https://api.github.com/repos/ubc/edx-ora2/commits{/sha}","git_commits_url":"https://api.github.com/repos/ubc/edx-ora2/git/commits{/sha}","comments_url":"https://api.github.com/repos/ubc/edx-ora2/comments{/number}","issue_comment_url":"https://api.github.com/repos/ubc/edx-ora2/issues/comments{/number}","contents_url":"https://api.github.com/repos/ubc/edx-ora2/contents/{+path}","compare_url":"https://api.github.com/repos/ubc/edx-ora2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ubc/edx-ora2/merges","archive_url":"https://api.github.com/repos/ubc/edx-ora2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ubc/edx-ora2/downloads","issues_url":"https://api.github.com/repos/ubc/edx-ora2/issues{/number}","pulls_url":"https://api.github.com/repos/ubc/edx-ora2/pulls{/number}","milestones_url":"https://api.github.com/repos/ubc/edx-ora2/milestones{/number}","notifications_url":"https://api.github.com/repos/ubc/edx-ora2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ubc/edx-ora2/labels{/name}","releases_url":"https://api.github.com/repos/ubc/edx-ora2/releases{/id}","created_at":"2015-04-13T18:57:40Z","updated_at":"2015-04-13T18:57:43Z","pushed_at":"2015-08-19T18:23:23Z","git_url":"git://github.com/ubc/edx-ora2.git","ssh_url":"git@github.com:ubc/edx-ora2.git","clone_url":"https://github.com/ubc/edx-ora2.git","svn_url":"https://github.com/ubc/edx-ora2","homepage":"","size":67882,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"edx:master","ref":"master","sha":"bfb46ed3f2606decd4f8bcddef572b0b7c4889ec","user":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"repo":{"id":15404425,"name":"edx-ora2","full_name":"edx/edx-ora2","owner":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/edx/edx-ora2","description":"Open Response Assessment Suite","fork":false,"url":"https://api.github.com/repos/edx/edx-ora2","forks_url":"https://api.github.com/repos/edx/edx-ora2/forks","keys_url":"https://api.github.com/repos/edx/edx-ora2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edx/edx-ora2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edx/edx-ora2/teams","hooks_url":"https://api.github.com/repos/edx/edx-ora2/hooks","issue_events_url":"https://api.github.com/repos/edx/edx-ora2/issues/events{/number}","events_url":"https://api.github.com/repos/edx/edx-ora2/events","assignees_url":"https://api.github.com/repos/edx/edx-ora2/assignees{/user}","branches_url":"https://api.github.com/repos/edx/edx-ora2/branches{/branch}","tags_url":"https://api.github.com/repos/edx/edx-ora2/tags","blobs_url":"https://api.github.com/repos/edx/edx-ora2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edx/edx-ora2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edx/edx-ora2/git/refs{/sha}","trees_url":"https://api.github.com/repos/edx/edx-ora2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edx/edx-ora2/statuses/{sha}","languages_url":"https://api.github.com/repos/edx/edx-ora2/languages","stargazers_url":"https://api.github.com/repos/edx/edx-ora2/stargazers","contributors_url":"https://api.github.com/repos/edx/edx-ora2/contributors","subscribers_url":"https://api.github.com/repos/edx/edx-ora2/subscribers","subscription_url":"https://api.github.com/repos/edx/edx-ora2/subscription","commits_url":"https://api.github.com/repos/edx/edx-ora2/commits{/sha}","git_commits_url":"https://api.github.com/repos/edx/edx-ora2/git/commits{/sha}","comments_url":"https://api.github.com/repos/edx/edx-ora2/comments{/number}","issue_comment_url":"https://api.github.com/repos/edx/edx-ora2/issues/comments{/number}","contents_url":"https://api.github.com/repos/edx/edx-ora2/contents/{+path}","compare_url":"https://api.github.com/repos/edx/edx-ora2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edx/edx-ora2/merges","archive_url":"https://api.github.com/repos/edx/edx-ora2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edx/edx-ora2/downloads","issues_url":"https://api.github.com/repos/edx/edx-ora2/issues{/number}","pulls_url":"https://api.github.com/repos/edx/edx-ora2/pulls{/number}","milestones_url":"https://api.github.com/repos/edx/edx-ora2/milestones{/number}","notifications_url":"https://api.github.com/repos/edx/edx-ora2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edx/edx-ora2/labels{/name}","releases_url":"https://api.github.com/repos/edx/edx-ora2/releases{/id}","created_at":"2013-12-23T20:54:54Z","updated_at":"2015-06-10T13:30:00Z","pushed_at":"2015-08-21T18:41:56Z","git_url":"git://github.com/edx/edx-ora2.git","ssh_url":"git@github.com:edx/edx-ora2.git","clone_url":"https://github.com/edx/edx-ora2.git","svn_url":"https://github.com/edx/edx-ora2","homepage":"","size":114428,"stargazers_count":24,"watchers_count":24,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":66,"mirror_url":null,"open_issues_count":9,"forks":66,"open_issues":9,"watchers":24,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/edx/edx-ora2/pulls/708"},"html":{"href":"https://github.com/edx/edx-ora2/pull/708"},"issue":{"href":"https://api.github.com/repos/edx/edx-ora2/issues/708"},"comments":{"href":"https://api.github.com/repos/edx/edx-ora2/issues/708/comments"},"review_comments":{"href":"https://api.github.com/repos/edx/edx-ora2/pulls/708/comments"},"review_comment":{"href":"https://api.github.com/repos/edx/edx-ora2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/edx/edx-ora2/pulls/708/commits"},"statuses":{"href":"https://api.github.com/repos/edx/edx-ora2/statuses/acd0cb03a344fc6fdee69d0b51aeb13c46622388"}}}}