ImageUploadEditorAttribute class

namespace: Serenity.ComponentModel   assemblySerenity.Net.Core

Sets editor type as "ImageUpload", which only allows image files. Make sure you use this attribute in Row.cs, not Form.cs as the image upload behavior only works if it is in row, otherwise your files will stay in temporary directory.

[AttributeUsage(AttributeTargets.All)]
public class ImageUploadEditorAttribute : BaseUploadEditorAttribute

Public Members

name description
ImageUploadEditorAttribute() Initializes a new instance of the ImageUploadEditorAttribute class.
override IsMultiple { get; }
const Key Editor type key

See Also