Skip to content

Commit

Permalink
Add hint
Browse files Browse the repository at this point in the history
  • Loading branch information
RMartinOscar committed Jan 26, 2025
1 parent 00e1f61 commit 1f975bb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,8 @@ public function form(Forms\Form $form): Forms\Form
TextInput::make('upload_size')
->label('Upload Limit')
->helperText('Enter the maximum size of files that can be uploaded through the web-based file manager.')
->hintIcon('tabler-question-mark')
->hintIconTooltip('Make sure you change client_max_body_size, client_body_timeout, upload_max_filesize = 100M & post_max_size=100M in your webserver config')
->columnSpan(1)
->numeric()->required()
->default(256)
Expand Down
5 changes: 4 additions & 1 deletion app/Filament/Admin/Resources/NodeResource/Pages/EditNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,10 @@ public function form(Forms\Form $form): Forms\Form
])
->label('Upload Limit')
->hintIcon('tabler-question-mark')
->hintIconTooltip('Enter the maximum size of files that can be uploaded through the web-based file manager.')
->hintIconTooltip('
Enter the maximum size of files that can be uploaded through the web-based file manager.
Make sure you change client_max_body_size, client_body_timeout, upload_max_filesize = 100M & post_max_size=100M in your webserver config
')
->numeric()->required()
->minValue(1)
->maxValue(1024)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ protected function getHeaderActions(): array
->storeFiles(false)
->previewable(false)
->preserveFilenames()
->maxSize($server->node->upload_size * (config('panel.use_binary_prefix') ? 1024 : 1000))
->maxSize($server->node->upload_size * config('panel.use_binary_prefix') ? 1024 : 1000)
->multiple(),
]),
Tab::make('Upload From URL')
Expand Down

0 comments on commit 1f975bb

Please sign in to comment.