By tannedsam2004 on
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
HTML tag, but the pic won`t display!
Is it because the directory that I upload to is not set to correct permissions?
Comments
could be a few reasons
Have you got the input format set to full HTML (in the content creation screen) in order to accept the
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.
imagefield
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
there are many ways to
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.