namespace: Serenity.ComponentModel assembly: Serenity.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
name | description |
---|---|
ImageUploadEditorAttribute() | Initializes a new instance of the ImageUploadEditorAttribute class. |
override IsMultiple { get; } | |
const Key | Editor type key |
- class CustomEditorAttribute
- class BaseUploadEditorAttribute
- Source: ImageUploadEditorAttribute.cs