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

thePanz’s picture

I think that this issue is due to Browser CSS interpreter.. If anyone else had the some issue, please reply! :)

Bye!

-thePanz-

thePanz’s picture

Status: Active » Postponed (maintainer needs more info)
shiff2kl’s picture

Version: 5.x-1.0 » 7.x-1.2
Status: Postponed (maintainer needs more info) » Active

I'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;
}