From 1fd4bf9e9d2358dab0542c8e5d38d0a7070ad04e Mon Sep 17 00:00:00 2001 From: Limber Mamani Date: Thu, 21 Nov 2024 15:46:41 -0400 Subject: [PATCH] [TM-1456] add docx and bin to mimes types --- app/Http/Requests/V2/File/UploadRequest.php | 2 +- config/wri/file-handling.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Requests/V2/File/UploadRequest.php b/app/Http/Requests/V2/File/UploadRequest.php index d9ccd636b..48ebfd037 100644 --- a/app/Http/Requests/V2/File/UploadRequest.php +++ b/app/Http/Requests/V2/File/UploadRequest.php @@ -22,7 +22,7 @@ public function rules() ], 'upload_file' => [ 'sometimes', - 'mimes:csv,txt,xls,xlsx,jpg,gif,png,pdf,tiff,svg,mp4,doc', + 'mimes:csv,txt,xls,xlsx,jpg,gif,png,pdf,tiff,svg,mp4,doc,docx,bin', ], 'collection' => [ 'sometimes', diff --git a/config/wri/file-handling.php b/config/wri/file-handling.php index 497c653a0..b44e47a15 100644 --- a/config/wri/file-handling.php +++ b/config/wri/file-handling.php @@ -7,8 +7,8 @@ 'cover-image-with-svg' => 'file|mimes:jpg,png,svg', 'photos' => 'file|mimes:jpg,png,mp4', 'pdf' => 'file|mimes:pdf', - 'documents' => 'file|mimes:pdf,xls,xlsx,csv,txt,doc', - 'general-documents' => 'file|mimes:pdf,xls,xlsx,csv,txt,png,jpg,doc,mp4', + 'documents' => 'file|mimes:pdf,xls,xlsx,csv,txt,doc,docx,bin', + 'general-documents' => 'file|mimes:pdf,xls,xlsx,csv,txt,png,jpg,doc,mp4,docx,bin', 'spreadsheet' => 'file|mimes:pdf,xls,xlsx,csv,txt', ], 'validation-file-types' => [