filament/filament
v3.2.92
v11.11.1
v3.5.1
PHP 8.2
Hello! I’ve been trying to create a custom user registration page in Filament, but I’ve been dealing with a 419 "The page has expired" error when registering. The user does get registered, and the notification is sent successfully, but I always encounter this 419 error after clicking the "Sign up" button.
Yesterday, I noticed that if I remove the FileUpload component from the registration form, I don’t get that 419 error. It seems quite strange to me.
It seems that when the image is uploaded to the temp directory the cookies are refreshed at least two times.
I'm using Redis as the session driver.
The user should be registered without getting the 419 "The page has expired".
public function form(Form $form): Form
{
return $form
->schema([
Forms\Components\Section::make('information')
->schema([
$this->getNameFormComponent(),
$this->getEmailFormComponent(),
$this->getPasswordFormComponent(),
$this->getPasswordConfirmationFormComponent(),
Forms\Components\FileUpload::make('image')
->required()
->image()
->maxFiles(1)
->placeholder('profile_image.jpg'),
]),
]);
}
I published a reproduction repository if you want to try it out.
https://github.com/rpereira-tae/test-app
There was not log from the `laravel.log` file.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too