Media url link doesn't work to download attachements using csv file

Dear @Kal_Lam ,

Kindly, I used to download media file attachments automatically using a tool through csv file of collected data which is this url ; https://kc.humanitarianresponse.info/attachment/original?media_file=iraq_habitat/attachments/, but now it can’t be downloaded. Is there any change in the url link of media files that prevents me from downloading the media files ?

Welcome back to the community, @iraq_habitat! Did you make your project/data public to see how it behaves? You should be able to access your media attachments after you make your data public.

is that new change? I used to download without making my data public, which is I don’t want to make my data public. do you mean below :

@iraq_habitat, yes! If you want to access your media attachments from the downloaded data which you downloaded in XLS format.

I access the media attachments using my account and password

is that change from API v1 to v2 made this issue ?

@iraq_habitat, ah yes! That is due to the change in the API endpoint. You will need to use the V2 API endpoint for this. You should be able to find the v2 endpoints in the docs. `https://kf.humanitarianresponse.info/api/v2/docs/?q=api/v2/\` .

If you had performed older exports (eg more than a year or so ago…) and had checked the “Include media URLs” in the export settings, then the resulting URLs included in the older CSV or XLSX data will, unfortunately, be referencing the now deprecated v1 API endpoints.

If you now perform a new identical export, then new export file should have all these correctly updated to the appropriate new v2 API endpoints for fetching the media files.

1 Like