Can only download http or https uri

I made an app for my educational institute and uploaded pdfs on google drive so that students can download it. I used kodular download component

Every time student clicks on download button image it shows an error can only download http/https uri.
I tried changing web url from my website to default google address www.google.com everything worked perfect(only surfing) but whenever i tried downloading anything from it the error appeared.
I searched for this topic on community but didn’t find any satisfactory solution.
Please Help me with this!

Welcome,
You should set the downlod component properties before you call the Download method.

1 Like

these are the properties that i have set.
The download url is obtained by webviewer component(set using blocks mentioned above.

I mean, you should set the Downlod URL, and the Save File As properties, before calling the Downlod method.

1 Like

image


Thank you for replying!
I did as you said but here I can’t put a fixed download url because url will vary for different files.

You still set the Downlod URL property after calling the Downlod method, you have to move the set Download1 . Downlod URL before the Downlod method ( see the image above ).

3 Likes

Thank You!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.