F
Filament12mo 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);
$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'])
FileUpload::make('file')
->label('')
->placeholder(__('Adjuntar un documento PDF o DOC'))
->acceptedFileTypes(['application/pdf', 'application/msword', 'application/doc', 'application/docx'])
Thanks!
1 Reply
Ramees
Ramees4mo ago
have you got any solution?
Want results from more Discord servers?
Add your server