Replies: 2 comments
-
|
Would be nice... |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Maybe you can do something with https://spatie.be/docs/laravel-medialibrary/v11/converting-other-file-types/using-image-generators? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Package
Other
Package Version
v3.2.50
How can we help you?
Hi there
I am using Spatie Media Library for file uploads of different kinds, images as well as e.g. PDFs.
Uploading both types and displaying on an edit view works fine, can be downloaded and opened.
For a view I created an Infolist with SpatieMediaLibraryImageEntry of the attachments. The image is shown correctly, the PDF just has a "broken" symbol as it is included as <img... tag, which it is not obviously. The url itself is correct behind that.

Is there a way to also display other than image attachments?
I looked for options on the Entry, but didn't find an obvious one.
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions