© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
1 reply
Soundmit

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'),
Forms\Components\FileUpload::make('documents')
  ->directory('customer_documents'),
image.png
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

FileUpload with PDF preview.
FilamentFFilament / ❓┊help
2y ago
Action for PDF and JPG preview
FilamentFFilament / ❓┊help
2y ago
pdf
FilamentFFilament / ❓┊help
3y ago