Images in post problem

Topics: Controls
Jan 26, 2012 at 8:36 AM

I'm using the latest (as in from source) version and it seems that inserting images in an post is broken. The uploader/file manager inserts something like <img src="/blog/IMAGES%2f2012%2f01%2fblog-shards-after.jpg.jpgx" alt="" /> and the image doesn;t show. However I found in some older posts that the correct tag is  <img src="/blog/image.axd?picture=2012%2f01%2fblog-shards-after.jpg" alt="" /> and changing it manually it displays properly.

The problem is that the editor/file manager doesn't insert the proper image src value. I'm using Firefox 9.0.1

On a side note, I've also found that posting comments didn't work with js enabled because the registerCommentBox() function wasn't called . I've inserted a call to it in ~/User Controls/CommentView.ascx but I consider this to be a hack for now.

May 9, 2012 at 5:33 AM
Edited May 9, 2012 at 5:34 AM

I found if i changed to this in BlogEngine.Core.FileSystem Image that it worked. 

        public string ImageUrl
                return string.Format("{0}image.axd?picture={1}", Utils.RelativeWebRoot, this.SafeFilePath);









Aug 10, 2012 at 10:52 AM

That works