Issue when using the FileUpload component in the builder

Hello! I have a problem with the builder. I have a builder with three inputs: two text and one file. when I add the first builder element everything works correctly, but when I try to add the same second block my images are reset. what could be the problem? Also, when I try to delete the builder element, I get an Undefined array key "type" error.
Builder::make('content')
->collapsible()
->reorderableWithButtons()
->label('Content constructor')
->blocks([
Block::make('text-left')
->label('Text + Image')
->schema([
TextInput::make('heading')
->label('Headin')
->columnSpanFull()
->required(),

RichEditor::make('text')
->label('Text')
->toolbarButtons([
'bulletList',
'orderedList',
'redo',
'undo',
])
->required(),

FileUpload::make('image')
->label('Image')
->image()
->required()
])->columns(2)
])->columnSpanFull(),
Builder::make('content')
->collapsible()
->reorderableWithButtons()
->label('Content constructor')
->blocks([
Block::make('text-left')
->label('Text + Image')
->schema([
TextInput::make('heading')
->label('Headin')
->columnSpanFull()
->required(),

RichEditor::make('text')
->label('Text')
->toolbarButtons([
'bulletList',
'orderedList',
'redo',
'undo',
])
->required(),

FileUpload::make('image')
->label('Image')
->image()
->required()
])->columns(2)
])->columnSpanFull(),
Link to flare: https://flareapp.io/share/q5YzQVXm
Flare
Undefined array key "type" - The error occurred at http://localhost:8000/backend/post-items/termostatika-i-dinamika/edit
No description
1 Reply
awcodes
awcodes15mo ago
I think this is an outstanding bug with livewires entangle. There’s an open issue about it on Filaments repo.
Want results from more Discord servers?
Add your server