From 35f9f6d746a62cfa479e8b245358b2e43c9be1ec Mon Sep 17 00:00:00 2001 From: Abdelmjid Saber <87904671+megoxv@users.noreply.github.com> Date: Thu, 26 Sep 2024 12:51:41 +0300 Subject: [PATCH] update accepted file types --- src/Pages/Plugins.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Pages/Plugins.php b/src/Pages/Plugins.php index 2e5bf43..01c61f1 100644 --- a/src/Pages/Plugins.php +++ b/src/Pages/Plugins.php @@ -187,7 +187,12 @@ public function getHeaderActions(): array ->form([ FileUpload::make('file') ->label(trans('filament-plugins::messages.plugins.form.file')) - ->acceptedFileTypes(['application/zip']) + ->acceptedFileTypes([ + 'application/zip', + 'application/x-zip', + 'application/octet-stream', + 'application/x-zip-compressed', + ]) ->required() ->storeFiles(false) ])