Forcing certain file types to download


When accessing files via WebLinks, if possible, the browser will try to open the file itself, instead of asking the user to save the file. Common file types, like images or text files will automatically open in the browser. You can force the browser to prompt the user for saving the file, instead of letting it automatically open.

Simply open the file "/path-to-WebFileShare/customizables/config.php" in a text editor and add the following line:

$config['app']['weblinks']['force_download'] = array("txt", "jpg");

You can replace "txt" and "jpg" with the file extension you want and also add more extensions.

 



Article ID: 593
Created On: Thu, Mar 6, 2014 at 5:45 AM
Last Updated On: Wed, Nov 22, 2017 at 9:29 AM
Authored by: KB Admin01 [[email protected]]

Online URL: https://kb.quikbox.com/article.php?id=593