We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b0197f commit 1679d86Copy full SHA for 1679d86
app/Repositories/ServiceRepository/Pack.php
@@ -60,8 +60,8 @@ public function create(array $data)
60
throw new DisplayException('The file provided does not appear to be valid.');
61
}
62
63
- if ($data['file_upload']->getMimeType() !== 'application/gzip') {
64
- 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.');
65
66
67
0 commit comments