How can I get the state of the file upload and save the uploaded files

I have a form action to upload multiple files
//...
FileUpload::make('attachments')
->multiple()
->columnSpanFull(),
//...
//...
FileUpload::make('attachments')
->multiple()
->columnSpanFull(),
//...
When I upload more than 2 files, I am getting only the last uploaded file name
->action(function (array $data, Ticket $record) {
dd($data['attachments']);
->action(function (array $data, Ticket $record) {
dd($data['attachments']);
dd output: array:1 [▼ // app\Filament\Resources\TicketResource\Pages\EditTicket.php:423 0 => "EUAPX1blrjo62ngqh7ZkUw0BzlA8vB-metac3NsYWNjZXNzbG9nX3ZpYnJhZm9uZS5jb18xMF8xN18yMDIzLmd6-.gz" ]
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server