Hi,

I'm working on the 'about us' page on my website, and the page is not able to call up some .jpg files.
I'm using < i m g s r c = "example.jpg" / > on the page to display the pictures.
Where would I need to save the pictures so Drupal is able to call them up locally?

Any help is appreciated.

Comments

mayank-kamothi’s picture

HI,GreenRock

put your image in files folder before put image in files folder plz check files folder permission and than call image like,
<img src="/sites/all/default/files/example.jpg"/>

Mayank Kamothi

GreenRock-1’s picture

How would I go about checking for the file permissions? I'm calling up the image in the directory: sites/default/files, but it's just giving me the alt on the website.

piyush_sharma’s picture

Hi
GreenRock

always use this standard

<img src="<?php print base_path(); print path_to_theme(); ?>/images/image.jpg">

jaypan’s picture

Actually, you can write that this way:

<img src="<?php print file_create_path(path_to_theme() . '/images/image.jpg'); ?>" />

Contact me to contract me for D7 -> D10/11 migrations.

Web Assistant’s picture