Cannot load image file in EPiServersite

I created the EPIServer CMS website using visual studio. I can access the site using edit mode. I want to add an image to this site. But when I try to upload an image using the upload option, it shows an error message. Why is this happening, do you have any ideas. But when I downloaded the images from the demo 'Aloy Site' site provided by the EPIServer team, it downloaded successfully. Please tell us about a possible reason.

Thank you and welcome Utpal Maity

+4
source share
1 answer

I also failed to upload images. Firstly, I thought it was a setting or a resolution problem. But it turned out that I needed a "media descriptor."

You can read about it here . This applies to EPiServer CMS 7.x

C # example:

[ContentType]
[MediaDescriptor(ExtensionString = "jpg,jpeg,jpe,gif,bmp,png")]
public class ImageFile : ImageData
{
    public virtual string AlternativeText { get; set; }
}
+9
source

All Articles