From 4e3d101df5f5ecb1fb8af320f195475f185532e8 Mon Sep 17 00:00:00 2001 From: Yushe Date: Fri, 9 Sep 2016 15:07:00 +0100 Subject: [PATCH] Update FileMethods.php --- app/models/Post/FileMethods.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/models/Post/FileMethods.php b/app/models/Post/FileMethods.php index 8f9d269..3e8af30 100755 --- a/app/models/Post/FileMethods.php +++ b/app/models/Post/FileMethods.php @@ -12,6 +12,8 @@ trait PostFileMethods 'image/jpg' => 'jpg', 'image/png' => 'png', 'image/gif' => 'gif', + 'video/webm' => 'webm', + 'video/mp4' => 'mp4', 'application/x-shockwave-flash' => 'swf' ]; @@ -715,4 +717,4 @@ protected function get_source_from_filename() $this->source = $source; } } -} \ No newline at end of file +}