Add images to a post

hpoom - February 22, 2007 - 23:41

Hi, I didn't want to post this question because I assumed this would have already be answered, but I can't find the answer anywhere. I have switched on the Upload module and uploaded some images in a post and all worked fine on local host. But on mty hosted site it has not worked. When I try to browse to the image I just get the image path displayed in the browser and not the image. For expample http://www.be-more-green.co.uk/files/ALU_Logo.jpg

Please can somebody tell me what I am doing wrong?

Thanks in advance

P.S. Check out http://www.be-more-green.co.uk it is my first attempt at a Drupal site

Anybody?

hpoom - February 23, 2007 - 08:18

Anybody?

Hi. I've had a similar

joachim - February 23, 2007 - 08:37

Hi.
I've had a similar problem.
In short: there's no one single easy way to put images in posts -- Drupal appears to be lacking in this area. There are at least a dozen different ways, and there's no real documentation to explain them so you can choose.

Basically, there are two approaches:
- you can have images created as nodes, and then inserted into other nodes' body text (that's with modules image and image_attach)
- you can use CCK to define content types that have images. This is easier for users to simply stick an image from their computer into a page, but it limits reusability of an uploaded image.

Lots more here: http://drupal.org/node/107622

I think I have fixed my

hpoom - February 23, 2007 - 09:10

I think I have fixed my problem now, I have commented out the .htaccess file in the files directory and this means the images now display OK. So then I am just using upload module to add images to a post.

A simpler way -

nlink - July 4, 2007 - 11:54

I just hope that this is a simpler hack,
how to add images in posts.

;)

Thanks

 
 

Drupal is a registered trademark of Dries Buytaert.