increase upload file size and small changes
This commit is contained in:
+5
-2
@@ -22,6 +22,9 @@ class JournalsRelationManager extends RelationManager
|
||||
protected static ?string $modelLabel = 'выпуск';
|
||||
protected static ?string $pluralModelLabel = 'выпуски';
|
||||
|
||||
protected static ?string $title = 'Выпуски журнала';
|
||||
|
||||
|
||||
public function form(Form $form): Form
|
||||
{
|
||||
return $form
|
||||
@@ -43,11 +46,11 @@ class JournalsRelationManager extends RelationManager
|
||||
'application/vnd.openxmlformats-officedocument.presentationml.presentation',
|
||||
'application/zip'
|
||||
])
|
||||
->maxSize(512000)
|
||||
->maxSize(256000)
|
||||
->disk('public')
|
||||
->directory('files')
|
||||
->downloadable()
|
||||
->helperText('Максимальный размер файла: 512MB. Допустимые форматы: PDF, DOCX, XLSX, PPTX, ZIP')
|
||||
->helperText('Максимальный размер файла: 256MB. Допустимые форматы: PDF, DOCX, XLSX, PPTX, ZIP')
|
||||
->openable(),
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -65,7 +65,7 @@ return [
|
||||
|
||||
'temporary_file_upload' => [
|
||||
'disk' => null, // Example: 'local', 's3' | Default: 'default'
|
||||
'rules' => 'max:17288', // Example: ['file', 'mimes:png,jpg'] | Default: ['required', 'file', 'max:12288'] (12MB)
|
||||
'rules' => 'max:122880', // Example: ['file', 'mimes:png,jpg'] | Default: ['required', 'file', 'max:12288'] (12MB)
|
||||
'directory' => null, // Example: 'tmp' | Default: 'livewire-tmp'
|
||||
'middleware' => null, // Example: 'throttle:5,1' | Default: 'throttle:60,1'
|
||||
'preview_mimes' => [ // Supported file types for temporary pre-signed file URLs...
|
||||
|
||||
Reference in New Issue
Block a user