Table of Contents

Class FormElementDataFile

Namespace
JJMasterData.Core.DataDictionary.Models
Assembly
JJMasterData.Core.dll
public class FormElementDataFile
Inheritance
FormElementDataFile
Inherited Members

Properties

AllowPasting

[JsonProperty("allowPasting")]
[Display(Name = "Allow pasting files")]
public bool AllowPasting { get; set; }

Property Value

bool

AllowedTypes

Allowed extension types, separated by a comma. Default: *

[Required]
[Display(Name = "Allowed Extensions")]
public string AllowedTypes { get; set; }

Property Value

string

Remarks

Example: txt,csv,log

DragDrop

[JsonProperty("dragDrop")]
[Display(Name = "Drag and Drop")]
public bool DragDrop { get; set; }

Property Value

bool

Export file name with download link

[JsonProperty("exportAsLink")]
[Display(Name = "Export as Link")]
public bool ExportAsLink { get; set; }

Property Value

bool

FolderPath

Physical path where the file will be saved

[Required]
[Display(Name = "Folder Path")]
public string FolderPath { get; set; }

Property Value

string

MaxFileSize

[JsonProperty("maxFileSize")]
[Display(Name = "Max File Size (MB)")]
public int MaxFileSize { get; set; }

Property Value

int

MultipleFile

Permite upload simultaneo de arquivos. Default: True

[JsonProperty("multipleFile")]
[Display(Name = "Allow Multiple Files")]
public bool MultipleFile { get; set; }

Property Value

bool

ShowAsUploadView

[JsonProperty("showAsUploadView")]
[Display(Name = "Show Upload Outside Modal")]
public bool ShowAsUploadView { get; set; }

Property Value

bool

ViewGallery

Preview images in gallery format

[JsonProperty("viewGallery")]
[Display(Name = "Show Files in Gallery")]
public bool ViewGallery { get; set; }

Property Value

bool

Methods

DeepCopy()

public FormElementDataFile DeepCopy()

Returns

FormElementDataFile