Cannot download file after uploading it one of my submissions when editing the submission

Hi All,

I am facing a weird issue, that when I submit a file in a form it gets submitted, but when I edit that submission and try to download the file I get this message ‘DNS lookup {ip address} is not allowed. Because, It is private IP address.’.

The url that I hit is this - https://enketo.domain.com/media/get/https/enketo.domain.com/media/medium?media_file=user%2Fattachments%filename.pdf

Configuration - We have installed kobo on our server with reverse proxy on nginx.

Any help regarding this will always be appreciated.
Thanks!

Hi @ryanend,

Could you kindly share with the community the screenshot of what you intend to download (dataset, images)? It would be helpful for the community to better understand your issue and provide support.

Have a great day!

Hi @Kal_Lam, thanks for the response.

Here is what I am trying to do -


I have created a form which has an option to upload the files.

When the user uploads the file and submits the form, the files gets stored in server.
But when he tries to edit that submission and then try downloading again - he gets this error message: (in the attached screenshots)

(upload://cMwFkD0P176jrAkFrMECgbHnFWy.jpeg)

Kindly let us know if this helps.
Thanks.

1 Like

Hi @ryanend,

A query, but why would you wish to download the file while you are in the edit mode? Maybe if you could download it through the online table view. It’s more easy and comfortable downloading a file from the online table view as shown in the image below:

Have a great day!

1 Like

Hi @Kal_Lam, yeah this suggestion would work, but I can not see the hyperlink under the file column as yours in the screenshot.

Thanks.

1 Like

Hi @ryanend,

Sorry i misunderstood your query. Yes the workaround only works with a media attachment i.e. with images, audio and video recording. It seems like KoBoToolbox at the moment does not support the same for the uploaded files. Could you kindly please create a Feature’s Improvement Request here so that the same could be seen in the upcoming days.

Have a great day!

1 Like

Thanks for the suggestion @Kal_Lam I sure will add request for feature, thanks.

However the issue I faced was related to a change in the config file for Enketo express, I had to manually change the config file to allow the private Ip address as per the instructions in this link - https://enketo.github.io/enketo-express/tutorial-10-configure.html (under ip filtering).

This solved my issue, posting here, if maybe someone else faced the same issue. Thanks.

1 Like

Hi @ryanend,

Thank you for sharing the solution with the entire community!

Have a great day!