Hello @zevenbergm ,
File Manager allows quite complex customizations, so opening/downloading actions can be changed per any use-case.
The URL is generated by the Backend service (directLink
method), the action itself (window.open
) is performed in the corresponding method of Operation service.
The original code of the related methods is shown in the following snippet: Code Snippet
To change the way of opening/downloading, I would recommend changing the open
and download
operations to any suitable custom code.
Here’s an example of downloading a file without using window.open
:
Code Snippet
In this snippet, webix.ajax
returns data as a blob, then downloading is triggered with the related Webix method.
Considering the directLink
method (which generates the initial URL), please note that the produced string URL is also used as a source for the media preview (line 40 in the 1st snippet). If you need to change this link as well, please make sure that Preview module will be able to process the changed link.