PDF Preview

When I upload an image as an upload, save the model, and then view the image preview, everything works fine. However, when I upload a PDF, I see the preview initially, but after saving, I no longer see it, and I encounter this error (image).

The document/image is uploaded to a subfolder and correctly saved in the database.

this is the field code

Forms\Components\FileUpload::make('documents')
  ->directory('customer_documents'),
image.png
Was this page helpful?