Add URL parameter force_download=Y to force download images

This commit is contained in:
Kijin Sung 2018-03-07 12:22:13 +09:00
parent 53599756a1
commit 7854d64641

View file

@ -501,6 +501,10 @@ class fileController extends file
{
$download_type = 'inline';
}
if (Context::get('force_download') === 'Y')
{
$download_type = 'attachment';
}
// Clear buffer
while(ob_get_level()) ob_end_clean();