Hello,
We've run into the issue where if the image we are adding to the html has spaces in the name, it is not being displayed. It displays fine when I right after I insert it from our image gallery but as soon as I save it to our database and then switch the html editor to readonly the image is not displayed. It works just fine for images without spaces in the filename.
Here is a same of the code we use for inserting the image:
The UriSource when formatted has %20 in place of the spaces.
Any help would be appreciated.
We've run into the issue where if the image we are adding to the html has spaces in the name, it is not being displayed. It displays fine when I right after I insert it from our image gallery but as soon as I save it to our database and then switch the html editor to readonly the image is not displayed. It works just fine for images without spaces in the filename.
Here is a same of the code we use for inserting the image:
private void InsertImage(string filename)
{
var user = WebContext.Current.User;
ImageInline image = new ImageInline();
image.UriSource = new Uri(string.Format(FilenameToBitmap.GetImageGalleryUriFormat(), user.BrokerId, filename));
image.Extension = IOAlias.Path.GetExtension(filename);
// Insert the image at current caret position.
editor.InsertInline(image);
_imageGallery.Close();
_imageGallery = null;
}
The UriSource when formatted has %20 in place of the spaces.
Any help would be appreciated.