Using block OnDownloadStart

Hi

I have read in some posts that with the block “on download start” from the WebViewer, you can download pdf archives, but i dont know what blocks do i have to use to fill all the sockets.

Can anyone help me, please?

PS: Sorry for my english, it’a not my native languaje
PPS: My knowledge about Kodular is near to zero

Yeah, use “On Download Start” block from Webviewer in conjunction with the Download component.

Please look at this

2 Likes

Remove all the forward backslash and find the word .png and use it as the filename

Thanks

This are the blocks I’m using by now.


But when y try to download a file, it gives back a runtime error <<can only download http/https url>> but the url is, in fact an https
(https://www.ccoo-servicios.es/archivos/telemarketing/Convenio-Contact-DEF.pdf)

@sertelccoo You are using wrongly.
-Set download url to url of web viewer.
-Set save file name by removing backslashes from the url
-Set download title to filename
Now use download file

1 Like

But, does it means that I have to set the url of every pdf document aviable in my web?

Is there aney way to set the blocks to follow the links, whatever they are?

PS: Any links are PDF documents

Do you want to open doocuments in your app something like chrome?

Thats exatly what I need

You can use @Deep_Host Custom Download Extension

Done and working using the method of this post.

Thhese are the blocks

1 Like

You have to put an empty textblock on the initialize global block.

2 Likes

Great, the warning stop showing. :slight_smile:

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