Image upload problems BE.

Topics: Business Logic Layer, Controls
Dec 4, 2014 at 11:50 AM
Hello All,

So I am pretty new to BlogEngine and have been writing my first posts. Very pleased so far except one thing - Image and file uploads do not work.

I have searched the forums here and seen various links about the axd handlers in the web config etc. These have been checked letter by letter and are all present.

I have narrowed down the issue to the following:

When I upload an image using the create/edit post screen, I get the image uploaded successfully box, and an icon for missing image appears at the bottom of the text editor.

Upon inspection, the path that is inputted for the image is:
<img src="/FILES%2f2014%2f12%2fWP_20141204_10_36_20_Pro__highres+(2).jpg.axdx">

This is obviously wrong.

I checked the /app_data/files/[year]/[month]/ folder and the image has been uploaded. As expected.

So what is the problem?

It turns out, after a bit of digging, and a bit of trial and error, the images cannot contain brackets. There is probably other characters in there that are not allowed, but brackets definately cause a big problem.

If you are having difficulty uploading images/files, rename your image to "aaa.jpg" or something similar, and try that.

Hopefully, that will save you the hour it cost me...