Jackson Falcão
Jackson Falcão
FFilament
Created by Jackson Falcão on 7/4/2024 in #❓┊help
Uploads Larger Than 16MB
"error during sending", and in the conslole: Failed to load resource: the server responded with a status of 422 (Unprocessable Content)
33 replies
FFilament
Created by Jackson Falcão on 7/4/2024 in #❓┊help
Uploads Larger Than 16MB
No description
33 replies
FFilament
Created by Jackson Falcão on 7/4/2024 in #❓┊help
Uploads Larger Than 16MB
Forms\Components\TextInput::make('diario_jornal') ->label('Jornal') ->required() ->extraInputAttributes(['type' => 'file']),
33 replies
FFilament
Created by Jackson Falcão on 7/4/2024 in #❓┊help
Uploads Larger Than 16MB
I glued the wrong one, but the others only have one and it still doesn't work.
33 replies
FFilament
Created by Jackson Falcão on 7/4/2024 in #❓┊help
Uploads Larger Than 16MB
I created a file for uploading in PHP and uploaded large files without any problems. This rules out the problem being in php or apache.
33 replies
FFilament
Created by Jackson Falcão on 7/4/2024 in #❓┊help
Uploads Larger Than 16MB
Forms\Components\FileUpload::make('diario_jornal') ->label('Jornal') ->maxSize(1024) ->imageEditorAspectRatios([ null, '16:9', '4:3', '1:1', ]) ->maxSize(1048576) ->preserveFilenames() ->downloadable() ->openable() ->directory('uploads') ->live(onBlur: true) ->disabled(function ($livewire){ $existe = $livewire->getRecord(); if(empty($existe->fechado)) { return false; }else{ if($existe->status_id === 1) {
return false; } else{ return true; } } } ) ->getUploadedFileNameForStorageUsing( fn (TemporaryUploadedFile $file, $record): string => (string) str($record->name) . '.' . $file->getClientOriginalExtension(), ) ->getUploadedFileNameForStorageUsing( fn (TemporaryUploadedFile $file): string => (string) str(now()->timestamp).'-Jornal'. '.' . $file->getClientOriginalExtension() ),
33 replies
FFilament
Created by Jackson Falcão on 7/4/2024 in #❓┊help
Uploads Larger Than 16MB
The problem was only noticed when it went into production. Here's the form.
33 replies
FFilament
Created by Jackson Falcão on 7/4/2024 in #❓┊help
Uploads Larger Than 16MB
it looks like this in access.log
33 replies
FFilament
Created by Jackson Falcão on 7/4/2024 in #❓┊help
Uploads Larger Than 16MB
45.175.18.112 - - [04/Jul/2024:08:22:10 +0000] "GET /admin/diario/publicacoes HTTP/1.1" 200 29479 "https://portalgov.tec.br/admin/relatorio-fatura-page" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36" 45.175.18.112 - - [04/Jul/2024:08:22:15 +0000] "GET /admin/diario/publicacoes/create HTTP/1.1" 200 27478 "https://portalgov.tec.br/admin/diario/publicacoes" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36" 45.175.18.112 - - [04/Jul/2024:08:22:18 +0000] "POST /livewire/update HTTP/1.1" 200 2850 "https://portalgov.tec.br/admin/diario/publicacoes/create" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36" 45.175.18.112 - - [04/Jul/2024:08:22:26 +0000] "POST /livewire/update HTTP/1.1" 200 5702 "https://portalgov.tec.br/admin/diario/publicacoes/create" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36" 45.175.18.112 - - [04/Jul/2024:08:22:26 +0000] "POST /livewire/upload-file?expires=1720081646&signature=5449ae0fa3cd121773ae40008f6fd5cdc1db6c6b0e26f8026fad0e05060ca3d7 HTTP/1.1" 422 1344 "https://portalgov.tec.br/admin/diario/publicacoes/create" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36" 45.175.18.112 - - [04/Jul/2024:08:22:30 +0000] "POST /livewire/update HTTP/1.1" 200 77787 "https://portalgov.tec.br/admin/diario/publicacoes/create" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36"
33 replies
FFilament
Created by Jackson Falcão on 7/4/2024 in #❓┊help
Uploads Larger Than 16MB
is in production
33 replies
FFilament
Created by Jackson Falcão on 7/4/2024 in #❓┊help
Uploads Larger Than 16MB
would it be this? I don't use php-fdm
33 replies
FFilament
Created by Jackson Falcão on 7/4/2024 in #❓┊help
Uploads Larger Than 16MB
<VirtualHost *:80> ServerName portalgov.tec.br ServerAlias www.portalgov.tec.br ServerAdmin [email protected] DocumentRoot /var/www/portalgov/public ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined RewriteEngine on RewriteCond %{SERVER_NAME} =www.portalgov.tec.br [OR] RewriteCond %{SERVER_NAME} =portalgov.tec.br RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] <Directory /var/www/portalgov/public> Options Indexes FollowSymLinks AllowOverride All Require all granted php_value upload_max_filesize 1024M php_value post_max_size 1024M php_value max_execution_time 300 php_value max_input_time 300 LimitRequestBody 209715200 </Directory> Timeout 300 </VirtualHost>
33 replies
FFilament
Created by Jackson Falcão on 7/4/2024 in #❓┊help
Uploads Larger Than 16MB
it's the same 1024M
33 replies
FFilament
Created by Jackson Falcão on 7/4/2024 in #❓┊help
Uploads Larger Than 16MB
To increase the simultaneous upload limit.
33 replies
FFilament
Created by Jackson Falcão on 7/4/2024 in #❓┊help
Uploads Larger Than 16MB
No description
33 replies
FFilament
Created by Jackson Falcão on 7/4/2024 in #❓┊help
Uploads Larger Than 16MB
upload_max_filesize is 1024M
33 replies
FFilament
Created by Jackson Falcão on 7/4/2024 in #❓┊help
Uploads Larger Than 16MB
[Thu Jul 04 06:01:40.209834 2024] [php:error] [pid 968729] [client 45.175.18.112:54003] PHP Fatal error: Could not check compatibility between App\Filament\Resources\Diario\PublicacoeResource::form(Filament\Resources\Form $form): Filament\Resources\Form and Filament\Resources\Resource::form(Filament\Forms\Form $form): Filament\Forms\Form, because class Filament\Resources\Form is not available in /var/www/portalgov/app/Filament/Resources/Diario/PublicacoeResource.php on line 46, referer: https://portalgov.tec.br/admin/diario/publicacoes [Thu Jul 04 06:03:40.857208 2024] [php:error] [pid 968664] [client 54.36.115.221:42830] PHP Fatal error: Could not check compatibility between App\Filament\Resources\Diario\PublicacoeResource::form(Filament\Resources\Form $form): Filament\Resources\Form and Filament\Resources\Resource::form(Filament\Forms\Form $form): Filament\Forms\Form, because class Filament\Resources\Form is not available in /var/www/portalgov/app/Filament/Resources/Diario/PublicacoeResource.php on line 46 [Thu Jul 04 06:03:41.653512 2024] [php:error] [pid 968663] [client 54.36.115.221:43174] PHP Fatal error: Could not check compatibility between App\Filament\Resources\Diario\PublicacoeResource::form(Filament\Resources\Form $form): Filament\Resources\Form and Filament\Resources\Resource::form(Filament\Forms\Form $form): Filament\Forms\Form, because class Filament\Resources\Form is not available in /var/www/portalgov/app/Filament/Resources/Diario/PublicacoeResource.php on line 46 [Thu Jul 04 06:16:36.472038 2024] [mpm_prefork:notice] [pid 968657] AH00170: caught SIGWINCH, shutting down gracefully [Thu Jul 04 06:16:36.679211 2024] [mpm_prefork:notice] [pid 969863] AH00163: Apache/2.4.58 (Ubuntu) OpenSSL/3.0.13 configured -- resuming normal operations [Thu Jul 04 06:16:36.679339 2024] [core:notice] [pid 969863] AH00094: Command line: '/usr/sbin/apache2'
33 replies
FFilament
Created by Jackson Falcão on 7/4/2024 in #❓┊help
Uploads Larger Than 16MB
No description
33 replies
FFilament
Created by Jackson Falcão on 7/4/2024 in #❓┊help
Uploads Larger Than 16MB
but smaller files it processes.
33 replies