mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/16863] Support playing video attachments
Correctly implement audio and video HTML5 tags (there is only one source) PHPBB3-16863
This commit is contained in:
@@ -253,7 +253,7 @@ class attachment extends controller
|
||||
// Content-type header
|
||||
$response->headers->set('Content-Type', $attachment['mimetype']);
|
||||
|
||||
// Display images in browser and force download for other file types
|
||||
// Display file types in browser and force download for others
|
||||
if (strpos($attachment['mimetype'], 'image') !== false
|
||||
|| strpos($attachment['mimetype'], 'audio') !== false
|
||||
|| strpos($attachment['mimetype'], 'video') !== false
|
||||
|
Reference in New Issue
Block a user