Developer forum

Forum » Ecommerce - Standard features » Download image in DAP

Download image in DAP

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,
I have a DAP setup where customers can download various assets. The standard logic is to pass some properties to GetImage.ashx and add that resulted link to a button.
What I need to solve is control over the name of the file, as right now, the resulting name is GetImage.htm.
Any way I can accomplish it with standard functionality?

Thank you,
Adrian


Replies

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Just a quick note.
Solution runs on DW 9.20.x
I tried already passing Filename and Forcedownload in the generated URL.

Adrian

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Nevermind. It seems like the default template is adding an unnecessary "/Files" prefix causing a 404. Removing the prefix solved the issue.
 

Adrian

 

You must be logged in to post in the forum