Inserting images in previous versions worked, why does it not work in

Topics: ASP.NET 2.0, Business Logic Layer
Sep 6, 2013 at 2:22 AM
I have a new installation of BE 208.0.2 and am unable to insert images into a post or page. Why does this issue exist in the latest version when it worked fine in previous versions.? This should not be an issue with an out of the box new installation of BE. I am using the new Standard theme.
Sep 6, 2013 at 2:35 PM
Can you clarify what is not working? The insert image function in works fine for me. The one known issue is that file manager, which uses flash component for uploads, does not work in FireFox due to security changes in that browser. The reason I'm asking is that it can be specific to you browser, environment or steps you going through.
Sep 6, 2013 at 2:54 PM
I create a new page, click insert image, upload image, the image has a question mark in it, if I try to insert it from the file manager manager it is the same.

This is what the path looks like:
<p><img src="/IMAGES%2f2013%2f09%2fXLplus+861290sml.jpg.jpgx" alt="" /></p> If I change it to the following it works.
<p><img src="/image.axd?picture=%2f2013%2f09%2fXLplus+861290sml.jpg" alt="" /></p> This issue occurs with Chrome, Safari and Firefox.
Sep 6, 2013 at 3:39 PM
I'll have to download again to make sure I don't have any modifications, but the one I'm using on couple sites definitely let me to upload images with no issues. They all produce "image.axd?" link. Will verify later tonight.
Sep 7, 2013 at 1:24 PM
Thanks for your help, I am looking forward to your findings.
Sep 7, 2013 at 2:41 PM
I'm relatively new to BlogEngine, and not a developer. I first installed BE right before version 2.8.0 came out and inserting images/videos worked fine if I remember correctly, but after the 2.8.0 upgrade and patch it no longer works. and I think even uploading files with the file manager no longer works. I've just been manually doing things and hoping for a new release, but obviously there hasn't been for months.
When I click the "Insert video" or "Insert Image" links in the add/edit post screen nothing happens. When on the attache a new file screen I can browse for a file, but then there is no save/upload button (or whatever should be there)
In the File manager screen I can't navigate (clicking or double clicking a folder/file does nothing).
Its been a while since I've looked in to any of these issues or done any troubleshooting, I just know it doesn't work as expected.

I did a fresh install on a test machine, and used the same theme, and I believe everything worked as expected... so not sure whats wrong with the install I care about.
I guess I'll have to look in to this more.
Sep 8, 2013 at 4:55 AM
Sorry guys, have a working weekend and could only look into it briefly. Jerry, for you problem with pages not liking ".jpgx" extension quick fix will be to modify file and image upload methods in edit page look like this (in /admin/Pages/EditPage.aspx.cs):
private void BtnUploadFileClick(object sender, EventArgs e)
    var dirName = string.Format("/{0}/{1}", DateTime.Now.ToString("yyyy"), DateTime.Now.ToString("MM"));
    var dir = BlogService.GetDirectory(dirName);
    var file = BlogService.UploadFile(txtUploadFile.PostedFile.InputStream, txtUploadFile.FileName, dir, true);
    txtContent.Text += string.Format("<p><a href=\"{0}\">{1}</a></p>", file.FileDownloadPath, file.FileDescription);

private void BtnUploadImageClick(object sender, EventArgs e)
    var dirName = string.Format("/{0}/{1}", DateTime.Now.ToString("yyyy"), DateTime.Now.ToString("MM"));
    var dir = BlogService.GetDirectory(dirName);
    var file = BlogService.UploadFile(txtUploadImage.PostedFile.InputStream, txtUploadImage.FileName, dir, true);
    txtContent.Text += string.Format("<img src=\"{0}image.axd?picture={1}\" />", Utils.RelativeWebRoot, Server.UrlEncode(file.AsImage.FilePath));
This will generate ".axd?" link for pages just as it does for posts.

Not working ".jpgx" link indicates problem with URL rewrite, but I'll have to look at it closer when have more time to see what is happening.

As for uploads not working on click, this usually happens when you added javascript that conflicts with existing scripts, like having 2 jQueries with different versions can do nasty things to JS code. Take a look at your site in FireBug or dev tools checking for script errors.
Sep 17, 2013 at 12:16 AM
Thanks rtur, I have been unavailable until today to get this fixed. Does the above code replace code or get added to the existing code on /admin/Pages/EditPage.aspx.cs?
Dec 1, 2013 at 6:27 PM
This is a common problem if the website is not running in an Application Pool configured to run in Integrated Mode.
Make sure that the App Pool is running in Integrated Pipeline. Doing this made the issue go away.
Dec 2, 2013 at 3:10 AM
Thank you Anastasiosyal, this did indeed take care of the issue.