File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -100,15 +100,15 @@ private function uploadValidator($file)
100
100
$ file_size = $ file ->getSize () / 1000 ;
101
101
$ type_key = parent ::currentLfmType ();
102
102
103
- if (config ('lfm.should_validate_mime ' )) {
103
+ if (config ('lfm.should_validate_mime ' , false )) {
104
104
$ mine_config = 'lfm.valid_ ' . $ type_key . '_mimetypes ' ;
105
105
$ valid_mimetypes = config ($ mine_config , []);
106
106
if (false === in_array ($ mimetype , $ valid_mimetypes )) {
107
107
return parent ::error ('mime ' ) . $ mimetype ;
108
108
}
109
109
}
110
110
111
- if (config ('lfm.should_validate_size ' )) {
111
+ if (config ('lfm.should_validate_size ' , false )) {
112
112
$ max_size = config ('lfm.max_ ' . $ type_key . '_size ' , 0 );
113
113
if ($ file_size > $ max_size ) {
114
114
return parent ::error ('size ' ) . $ mimetype ;
You can’t perform that action at this time.
0 commit comments