diff --git a/app/Repositories/ServiceRepository/Pack.php b/app/Repositories/ServiceRepository/Pack.php index 3cf8588e4..03858ed67 100644 --- a/app/Repositories/ServiceRepository/Pack.php +++ b/app/Repositories/ServiceRepository/Pack.php @@ -60,8 +60,8 @@ class Pack throw new DisplayException('The file provided does not appear to be valid.'); } - if ($data['file_upload']->getMimeType() !== 'application/gzip') { - throw new DisplayException('The file provided does not meet the required filetype of application/gzip.'); + if (! in_array($data['file_upload']->getMimeType(), ['application/gzip', 'application/x-gzip'])) { + throw new DisplayException('The file provided (' . $data['file_upload']->getMimeType() . ') does not meet the required filetype of application/gzip.'); } }