Open cwchong opened 5 years ago
I've taken the liberty of marking this UX issue as impact/high
. I'd imagine in a large list a user relies on the thumbnails quite a lot to find their image.
I have this problem on a project at the moment that makes use of the Imgix module (image processing CDN), so the resampled images are never stored on the local filesystem and only on the CDN. I found that I had to put the config below in order to get the images to work... thought I would share incase this helps as a similar issue
---
Name: app_imgix
After: assetadmingraphql-dependencies
---
SilverStripe\Core\Injector\Injector:
SilverStripe\AssetAdmin\Model\ThumbnailGenerator.graphql:
class: SilverStripe\AssetAdmin\Model\ThumbnailGenerator
properties:
Generates: true
I think I might be seeing the same issue surfacing when a file is uploaded via the FileUploadField provided by the userforms module, using the Upload PHP API
A new RFC has been raised that would support this: RFC Add API to do post file upload processing #399
Thumbnails not rendered in Tile view (default) in asset admin, if it is uploaded via code. Inside any page controller:
In default Tile view, no thumbnail is rendered In Table view, thumbnail shown In details view, note that the image is already published Clicking publish again renders the thumbnail
Additionally, the thumbnail file is created via code, so it is not a case of the thumbnail file actually missing. I believe there is some react/gql thing going on at js level that is not picking up the image if not done "through" uploadfield/cms