Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have discovered by accident that if the file extension is in upper case, e.g. "file.PDF", it doesn't work. Must be "file.pdf. I will be careful with file names. Could this be recoded to avoid problem for others?
Comments
Comment #1
thePanz CreditAttribution: thePanz commentedI think that this issue is due to Browser CSS interpreter.. If anyone else had the some issue, please reply! :)
Bye!
-thePanz-
Comment #2
thePanz CreditAttribution: thePanz commentedComment #3
shiff2kl CreditAttribution: shiff2kl commentedI'm encountering this with Drupal 7. I have a PDF document that is in uppercase for the link. The link will not work with a lower case .pdf as it links to an external site out of my control. Tested with the latest versions of Chrome and Firefox.
Adding the following to files_icons-override.css fixes the issue, but it would be nice if this was in the module.
a[href$='.PDF'], a[href*='.PDF#page='] {
padding: 5px 20px 5px 0;
background: transparent url(files_icons/icon_pdf.gif) no-repeat center right;
}