mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Allow some file types to be downloaded inline
이미지, 오디오, 비디오, PDF 등 일부 파일을 다운로드하면 다운로드 창을 띄우지 않고 현재 창에 바로 표시할 수 있는 옵션 추가 단, text/html은 보안상 허용하지 않음
This commit is contained in:
parent
b253c8c0b1
commit
2366d61ea4
6 changed files with 64 additions and 8 deletions
|
|
@ -69,6 +69,7 @@ class fileAdminController extends file
|
|||
$config->allow_outlink = Context::get('allow_outlink');
|
||||
$config->allow_outlink_format = Context::get('allow_outlink_format');
|
||||
$config->allow_outlink_site = Context::get('allow_outlink_site');
|
||||
$config->inline_download_format = array_map('utf8_trim', Context::get('inline_download_format'));
|
||||
|
||||
// Check maximum file size
|
||||
if (PHP_INT_SIZE < 8)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue