Hey

I am trying to build a site that allows users to upload their own photos on their posts.
When the post is displayed I would like the image to be seen as well.

I have enabled upload and have just tried a simply embedding a Only local images are allowed. HTML tag, but the pic won`t display!
Is it because the directory that I upload to is not set to correct permissions?

Comments

brianmurray’s picture

Have you got the input format set to full HTML (in the content creation screen) in order to accept the Only local images are allowed. tag otherwise it's probably defaulting to filtered HTML which I don't think will accept the tag.

Another option is to add a CCK image type to your content type and allow users to upload it that way.

Anonymous’s picture

I agree that CCK might be a good way to go.

http://drupal.org/project/imagefield

-Mike Goodwin
http://www.not2us.net
http://www.redleafmedia.com

arh1’s picture

there are many ways to handle embedding images. here's a very quick comparison i made recently of 3 different approaches.

that said, it sounds like your immediate problem is the HTML filter for your input format, as brianmurray mentioned above. to fix it, configure the appropriate input format at /admin/settings/filters , and click the configure tab to adjust the allowed HTML tags. be aware that full HTML (e.g. any input format that does not have an HTML filter) is a security risk and should only be allowed for the most privileged users.