I'm using the 'window.open()' function but when the file doesn't have an extension (when the filename is only an uuid for example), the file is getting downloaded instead of opening in new tab.
When the file has an extension, there's no problem.
const folder = '/destination_folder/';
var url = folder.concat('', uuid);
window.open(url);
I am using Twig by the way.
Thank you !