File tree Expand file tree Collapse file tree 4 files changed +6
-4
lines changed
Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,8 @@ public static function form(Schema $schema): Schema
9595 \Filament \Forms \Components \SpatieMediaLibraryFileUpload::make ('files ' )
9696 ->label ('File ' )
9797 ->visible (fn (callable $ get ) => $ get ('type ' ) === 'file ' )
98- ->required (fn (callable $ get ) => $ get ('type ' ) === 'file ' ),
98+ ->required (fn (callable $ get ) => $ get ('type ' ) === 'file ' )
99+ ->maxSize (512000 ), // 500MB
99100
100101 // Link form fields
101102 \Filament \Forms \Components \TextInput::make ('external_url ' )
Original file line number Diff line number Diff line change @@ -37,7 +37,8 @@ public function form(\Filament\Schemas\Schema $schema): \Filament\Schemas\Schema
3737 ->maxLength (255 ),
3838
3939 \Filament \Forms \Components \SpatieMediaLibraryFileUpload::make ('files ' )
40- ->label ('File ' ),
40+ ->label ('File ' )
41+ ->maxSize (512000 ), // 500MB
4142
4243 \Filament \Forms \Components \Textarea::make ('link_description ' )
4344 ->label ('Description ' )
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ protected function getHeaderActions(): array
123123 FileUpload::make ('file ' )
124124 ->label ('Upload File ' )
125125 ->required ()
126- ->maxSize (10240 ) // 10MB
126+ ->maxSize (512000 ) // 500MB
127127 ->disk ('public ' )
128128 ->directory ('library-files ' )
129129 ->visibility ('private ' )
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ protected function getHeaderActions(): array
8989 \Filament \Forms \Components \FileUpload::make ('file ' )
9090 ->label ('Upload File ' )
9191 ->required ()
92- ->maxSize (10240 ) // 10MB
92+ ->maxSize (512000 ) // 500MB
9393 ->disk ('public ' )
9494 ->directory ('library-files ' )
9595 ->visibility ('private ' )
You can’t perform that action at this time.
0 commit comments