FilamentF
Filament2y ago
Xavi

FileUpload on edit page

I have a FileUpload field on a form. How can i add file uploaded when i edit this form.

I try this but it doesn't works

$data['file'] = storage_path('app/public/1.pdf');
$this->form->fill($data);


and this is the form field
FileUpload::make('file')
                ->label('')
                ->placeholder(__('Adjuntar un documento PDF o DOC'))
                ->acceptedFileTypes(['application/pdf', 'application/msword', 'application/doc', 'application/docx'])


Thanks!
Was this page helpful?