I just got my third Drupal site running, and I simply want to display an image in the content pane and have it linked to a .pdf file I have only the core modules. My code:

<p><div id="coupon"><a href="http://www.accu-taxservices.com/files/documents/Accu-TaxServices_Coupon.pdf"><img src="http://www.accu-taxservices.com/files/images/coupon.jpg" alt="Tax Return Coupon" border="0" target=new /></a></div></p>

I don't get the image, and I don't get the .pdf file when clicking on it. This is input in the body of a page content type with full HTML enabled.

I've checked that the .jpg and .pdf exist in the files folder. The files folder has the correct permissions - everyone can read. I've tried lopping off the "http://www.accu-taxservices.com" but no change. If I navigate directly to
http://www.accu-taxservices.com/files/documents/Accu-TaxServices_Coupon.pdf My site comes up, not the .pdf as I would expect.

Do I need an image module to display images?

Comments

yelvington’s picture

You do not need an image module to display images.

You do, however, need to upload the image and refer to it by the proper URL. You have failed to do one of those two. http://www.accu-taxservices.com/files/images/coupon.jpg is 404.

bwill’s picture

Hence my frustration...

.jpg and .pdf are uploaded to the path I specified folder - just checked for the 3rd time. I was just wondering if Drupal didn't like this type of link for some reason. Maybe more coffee is needed...

bwill’s picture

The folder names are case sensitive - Files vs files. Had to reach back to my java days for that one...