Re: [Dhis2-users] File Uploads Tracked Entity Attributes

2018-11-14 Thread Ranvir Maharaj
Hi Stian, I am using v2.27. The URL you provided for me does not work (/trackedEntityInstances///image). I get a 404. When I query the file, it has been stored. Does it only support images? On Wed, Nov 14, 2018 at 1:38 PM Stian Sandvold wrote: > Hi Ranvir, most files can be retrieved from 2.3

Re: [Dhis2-users] File Uploads Tracked Entity Attributes

2018-11-14 Thread Stian Sandvold
Hi Ranvir, most files can be retrieved from 2.31 at /api/fileResources//data, except for files related to data values and attribute values. The reason is they require a different type of access check. In your case you are working with Tracked Entity Attributes, so you can find your files at /track

Re: [Dhis2-users] File Uploads Tracked Entity Attributes

2018-11-14 Thread Ranvir Maharaj
Hey Markus, We're building a custom application that uses the DHIS API's. I can get the file information when I call *"/*api*/fileResources/{id}". *How do I actually view the uploaded file though or download it? I want to basically have an a tag that links to the file in our application. Regards,

Re: [Dhis2-users] File Uploads Tracked Entity Attributes

2018-11-14 Thread Markus Bekken
Hey there Ranvir! Are you trying to retrieve the file from the API/directly from the backend? Or does the user log in, open the tracker and try downloading the file from within the tracker app? Markus P.S. we are moving these topics to the community.dhis2.org - a