Hi,

I saw many posts about downloading files, but I still didn't get how to do a very simple task: I just want to have a button on my reactive web application to download a file (any format, like PDF, JPG, TXT, XLS, DOC, PPT, ZIP, etc) from a known URL, i.e. https://images-na.ssl-images-amazon.com/images/I/51NV8Uil7wL._AC_SY200_.jpg . The URL wil be hardcoded, it's not a value of database field.

How is the simplest way to do this? Thanks


Hello Marcelo.

If you simply place the link there, clicking will sent the user to the image address.

To force download you can always:

1. Get the content with HttpBinaryGet (an extension).
2. Set the download action with such content and the name you want.

You just need to create a server action to bridge the extension and the screen action.


Solution

Hi Marcelo,

You can achieve the mentioned requirement by using GetRequest_Submit server action defined in HTTPRequestHander API Module

See this sample app

Please find the attached .oml file


Hope this helps you!


Regards,

Benjith Sam

Solution

Nuno Reis & Benjith Sam,

That works! Many thanks!!!