{"action":"created","issue":{"url":"https://api.github.com/repos/neurospin/localizer/issues/5","labels_url":"https://api.github.com/repos/neurospin/localizer/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/neurospin/localizer/issues/5/comments","events_url":"https://api.github.com/repos/neurospin/localizer/issues/5/events","html_url":"https://github.com/neurospin/localizer/issues/5","id":58491445,"number":5,"title":"CSV of available images outputs server's local file paths, rather than download URLs","user":{"login":"bcipolli","id":4072455,"avatar_url":"https://avatars.githubusercontent.com/u/4072455?v=3","gravatar_id":"","url":"https://api.github.com/users/bcipolli","html_url":"https://github.com/bcipolli","followers_url":"https://api.github.com/users/bcipolli/followers","following_url":"https://api.github.com/users/bcipolli/following{/other_user}","gists_url":"https://api.github.com/users/bcipolli/gists{/gist_id}","starred_url":"https://api.github.com/users/bcipolli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcipolli/subscriptions","organizations_url":"https://api.github.com/users/bcipolli/orgs","repos_url":"https://api.github.com/users/bcipolli/repos","events_url":"https://api.github.com/users/bcipolli/events{/privacy}","received_events_url":"https://api.github.com/users/bcipolli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-22T05:37:16Z","updated_at":"2015-06-10T14:21:52Z","closed_at":null,"body":"I would like to programmatically download images for analysis.  I executed the desired query, then downloaded the CSV file.  The CSV file does not contain download URLs; instead, it contains file paths on the server for each image.\r\n\r\nI could not find any way to map these file paths to download URLs.  Is this something you could help with, or could fix on the website?\r\n\r\n[Demo query result](http://brainomics.cea.fr/localizer/view?rql=Any+SA+LIMIT+100+WHERE+S+is+Subject%2C+X+is+QuestionnaireRun%2C+X+concerns+S%2C+A+is+Answer%2C+A+questionnaire_run+X%2C+A+question+Q%2C+Q+text+%22algebre%22%2C+A+value+%3E+4%2C+SA+is+Scan%2C+SA+concerns+S%2C+SA+type+%22c+map%22&__fromsearchbox=1&subvid=tsearch)\r\n[Demo CSV file](http://brainomics.cea.fr/localizer/view?rql=Any%20SA%20LIMIT%20100%20WHERE%20S%20is%20Subject%2C%20X%20is%20QuestionnaireRun%2C%20X%20concerns%20S%2C%20A%20is%20Answer%2C%20A%20questionnaire_run%20X%2C%20A%20question%20Q%2C%20Q%20text%20%22algebre%22%2C%20A%20value%20%3E%204%2C%20SA%20is%20Scan%2C%20SA%20concerns%20S%2C%20SA%20type%20%22c%20map%22&vid=csvexport)\r\n\r\nThanks!\r\n"},"comment":{"url":"https://api.github.com/repos/neurospin/localizer/issues/comments/110771716","html_url":"https://github.com/neurospin/localizer/issues/5#issuecomment-110771716","issue_url":"https://api.github.com/repos/neurospin/localizer/issues/5","id":110771716,"user":{"login":"DimitriPapadopoulos","id":3234522,"avatar_url":"https://avatars.githubusercontent.com/u/3234522?v=3","gravatar_id":"","url":"https://api.github.com/users/DimitriPapadopoulos","html_url":"https://github.com/DimitriPapadopoulos","followers_url":"https://api.github.com/users/DimitriPapadopoulos/followers","following_url":"https://api.github.com/users/DimitriPapadopoulos/following{/other_user}","gists_url":"https://api.github.com/users/DimitriPapadopoulos/gists{/gist_id}","starred_url":"https://api.github.com/users/DimitriPapadopoulos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DimitriPapadopoulos/subscriptions","organizations_url":"https://api.github.com/users/DimitriPapadopoulos/orgs","repos_url":"https://api.github.com/users/DimitriPapadopoulos/repos","events_url":"https://api.github.com/users/DimitriPapadopoulos/events{/privacy}","received_events_url":"https://api.github.com/users/DimitriPapadopoulos/received_events","type":"User","site_admin":false},"created_at":"2015-06-10T14:21:52Z","updated_at":"2015-06-10T14:21:52Z","body":"Indeed the CSV file should not contain absolute paths on the server.\r\nInstead it should contain relative paths - the path of each file within the ZIP file.\r\n\r\nIn future versions of the software, each file associated to a request will not only be made available as part of a ZIP file, it will also be made available individually via SFTP. When that happens, the CSV should indeed contain relative paths as found in the ZIP file, or maybe download URLs, or even both."}}