2

I upload a file using laravel backpack type => 'upload' view. It uploads successfully. But in the editing, it is not visible input. What is wrong if anyone knows to help me.

My Controller

$this->crud->addField([
            'label' => "Document",
            'name' => "document",
            'type' => 'upload',
            'upload' => true,
            'crop' => false,
            'disk' => 'vault',
        ]);

Below I attach the edit input view. It didn't show the already uploaded file name.

enter image description here

Senthurkumaran
  • 1,738
  • 2
  • 19
  • 29

1 Answers1

1

Try this

Try this use ], 'both');

$this->crud->addField(
            [
             'label' => "Document",
             'name' => "document",
             'type' => 'upload',
             'upload' => true,
             'crop' => false,
             'disk' => 'vault',
            ], 'both');
VIKAS KATARIYA
  • 5,867
  • 3
  • 17
  • 34