Class ContentPropertyFile
Represents an uploaded file for a property.
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.Models.Editors
Assembly: Umbraco.Core.dll
Syntax
public class ContentPropertyFile
Properties
View SourceCulture
When dealing with content variants, this is the culture for the variant
Declaration
public string Culture { get; set; }
Property Value
Type | Description |
---|---|
System.String |
FileName
Gets or sets the name of the file.
Declaration
public string FileName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Metadata
An array of metadata that is parsed out from the file info posted to the server which is set on the client.
Declaration
public string[] Metadata { get; set; }
Property Value
Type | Description |
---|---|
System.String[] |
Remarks
This can be used for property types like Nested Content that need to have special unique identifiers for each file since there might be multiple files per property.
PropertyAlias
Gets or sets the property alias.
Declaration
public string PropertyAlias { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Segment
When dealing with content variants, this is the segment for the variant
Declaration
public string Segment { get; set; }
Property Value
Type | Description |
---|---|
System.String |
TempFilePath
Gets or sets the temporary path where the file has been uploaded.
Declaration
public string TempFilePath { get; set; }
Property Value
Type | Description |
---|---|
System.String |