From b3c63db7e2fef3f118dfaea25d68c84a7fdfbfce Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Fri, 20 Feb 2026 10:09:13 -0500 Subject: [PATCH] Update MediaService.php --- classes/MediaService.php | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/classes/MediaService.php b/classes/MediaService.php index 702f910..898f84b 100644 --- a/classes/MediaService.php +++ b/classes/MediaService.php @@ -116,7 +116,7 @@ class MediaService { CURLOPT_URL => $url, CURLOPT_RETURNTRANSFER => true, CURLOPT_FOLLOWLOCATION => true, - CURLOPT_TIMEOUT => 30, + CURLOPT_TIMEOUT => 120, CURLOPT_HTTPHEADER => $headers, ]); $content = curl_exec($ch); @@ -133,11 +133,26 @@ class MediaService { 'image/jpeg' => 'jpg', 'image/png' => 'png', 'image/gif' => 'gif', + 'image/webp' => 'webp', 'audio/mpeg' => 'mp3', 'audio/ogg' => 'ogg', + 'audio/opus' => 'opus', + 'audio/aac' => 'aac', + 'audio/amr' => 'amr', 'video/mp4' => 'mp4', + 'video/3gpp' => '3gp', + 'video/quicktime' => 'mov', 'text/csv' => 'csv', - 'application/pdf' => 'pdf' + 'text/plain' => 'txt', + 'application/pdf' => 'pdf', + 'application/msword' => 'doc', + 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' => 'docx', + 'application/vnd.ms-excel' => 'xls', + 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' => 'xlsx', + 'application/vnd.ms-powerpoint' => 'ppt', + 'application/vnd.openxmlformats-officedocument.presentationml.presentation' => 'pptx', + 'application/zip' => 'zip', + 'application/x-rar-compressed' => 'rar', ]; return $map[$mime] ?? null; }