File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 14
14
use Illuminate \Console \Command ;
15
15
use Illuminate \Support \Arr ;
16
16
use Illuminate \Support \Str ;
17
+ use Spatie \MediaLibrary \MediaCollections \Exceptions \FileIsTooBig ;
17
18
18
19
class RetrieveExtensions extends Command
19
20
{
@@ -122,6 +123,10 @@ public function handle()
122
123
$ exception ->getResponse ()->getStatusCode () === 404
123
124
) {
124
125
$ this ->warn ("Not Found error downloading dist file url $ distUrl " );
126
+ } else if ($ exception instanceof FileIsTooBig) {
127
+ $ this ->warn ("Dist file url $ distUrl is too big: " . $ exception ->getMessage ());
128
+
129
+ logger ()->warning ("Dist file url $ distUrl is too big: " . $ exception ->getMessage ());
125
130
} else {
126
131
$ this ->error ($ exception ->getMessage ());
127
132
Original file line number Diff line number Diff line change 12
12
* The maximum file size of an item in bytes.
13
13
* Adding a larger file will result in an exception.
14
14
*/
15
- 'max_file_size ' => 1024 * 1024 * 15 , // 15MB
15
+ 'max_file_size ' => 1024 * 1024 * 35 , // 35MB
16
16
17
17
/*
18
18
* This queue will be used to generate derived and responsive images.
You can’t perform that action at this time.
0 commit comments