Probably a silly question but, i have a file upload field that allows .jpg,.png,.gif,.pdf
When i upload any of the image file types it shows a small thumbnail that i have set and when you click on it i have made it show in a lightbox, all working great, except for a PDF, no thumbnail and no view in the lightbox either.
Am i doing something wrong or is this normal that it can not show a pdf file?
Is there any way i could make this work with a pdf even if only in the lightbox, so i can add a custom thumbnail but in the lightbox i really need to show the PDF, otherwise i suppose worst case scenario is i can make clicking on a pdf not open in the lightbox but just in another browser window. Unless you have a way around this @Teodor
OK cool, i will just make it open in a new browser window when clicked then, thanks @Teodor, saved me hours of fiddling that would have had no results, appreciate it
Ok i have this mostly working now @Teodor, but my lightbox still reads that there is a PDF file somewhere so it tries to show it, can i have a lightbox setting that ignores .pdf
Here is my code, maybe there is another way to do this better.
I sent you a pm of the link to my site to see, but basically with the shown code I am hiding the first repeat if the extension is .pdf and then in the second div i am showing the pdf preview if the extension is .pdf, but if i click the first image it shows arrosw to the next image which can not display