mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/16863] Support playing video attachments
PHPBB3-16863
This commit is contained in:
parent
90d92ffdff
commit
8726a6a3cb
1 changed files with 4 additions and 2 deletions
|
@ -254,8 +254,10 @@ class attachment extends controller
|
|||
$response->headers->set('Content-Type', $attachment['mimetype']);
|
||||
|
||||
// Display images in browser and force download for other file types
|
||||
if (strpos($attachment['mimetype'], 'image') !== false || strpos($attachment['mimetype'], 'audio') !== false ||
|
||||
strpos($attachment['mimetype'], 'video') !== false)
|
||||
if (strpos($attachment['mimetype'], 'image') !== false
|
||||
|| strpos($attachment['mimetype'], 'audio') !== false
|
||||
|| strpos($attachment['mimetype'], 'video') !== false
|
||||
)
|
||||
{
|
||||
$disposition = $response->headers->makeDisposition(
|
||||
ResponseHeaderBag::DISPOSITION_INLINE,
|
||||
|
|
Loading…
Add table
Reference in a new issue