Problem/Motivation
When selecting a pdf file, the thumbnail icon cannot be displayed
Steps to reproduce
1.click file upload button in ckeditor
2.select a pdf file in file listing or upload a new pdf file
3.the thumbnail icon cannot be displayed as shown in the attached picture
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 3221662_add_pdf_thumbnail.patch | 822 bytes | franckylfs |
| #3 | 3221662-add_thumbnails_when_select_a_pdf_file.patch | 758 bytes | connbi |
| image-2021-07-01-11-30-38-733.png | 125.06 KB | connbi | |
| image-2021-07-01-11-35-48-926.png | 174.12 KB | connbi |
Issue fork file_browser-3221662
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
connbi commentedComment #3
connbi commentedComment #4
franckylfs commentedThe patch didn't work for me. So, I looked at the code and made a slight adjustment during validation. Now it works. Here is my version of the patch.
Comment #5
d.fisher commentedLet's get this rolled into a branch with a merge request!
Comment #7
d.fisher commentedBranch and MR now pass gitlab pipelines.
@connbi and @franckylfs can you test MR!13 against the 2.x branch and see if it resolves the issue for you?
You can add the patch to your composer patches using the MR url:
https://git.drupalcode.org/project/file_browser/-/merge_requests/13
and add .patch as a suffix to it like so:
https://git.drupalcode.org/project/file_browser/-/merge_requests/13.patch
This will give you a remote patch to test with. Let me know if it's working for you and when we get a couple of thumbs up we can get this merged and released and marked as fixed with you both credited for you hard work.
Thank you!
Comment #8
d.fisher commentedAnyone want to review this one and mark as RTBC if it solves the issue?
Comment #9
d.fisher commentedMarking RTBC based on my own testing. No objections reported here so going to get this one moving.
Comment #10
d.fisher commentedMerged to 2.x and will be in next tagged release.