Class UploadAutoFillProperties
Provides methods to manage auto-fill properties for upload fields.
Inheritance
Namespace: Umbraco.Cms.Core.Media
Assembly: Umbraco.Core.dll
Syntax
public class UploadAutoFillProperties
Constructors
View SourceUploadAutoFillProperties(MediaFileManager, ILogger<UploadAutoFillProperties>, IImageDimensionExtractor)
Declaration
public UploadAutoFillProperties(MediaFileManager mediaFileManager, ILogger<UploadAutoFillProperties> logger, IImageDimensionExtractor imageDimensionExtractor)
Parameters
Type | Name | Description |
---|---|---|
MediaFileManager | mediaFileManager | |
ILogger<UploadAutoFillProperties> | logger | |
IImageDimensionExtractor | imageDimensionExtractor |
Methods
View SourcePopulate(IContentBase, ImagingAutoFillUploadField, String, Stream, String, String)
Populates the auto-fill properties of a content item.
Declaration
public void Populate(IContentBase content, ImagingAutoFillUploadField autoFillConfig, string filepath, Stream filestream, string culture, string segment)
Parameters
Type | Name | Description |
---|---|---|
IContentBase | content | The content item. |
ImagingAutoFillUploadField | autoFillConfig | The automatic fill configuration. |
System.String | filepath | The filesystem-relative filepath, or null to clear properties. |
Stream | filestream | The stream containing the file data. |
System.String | culture | Variation language. |
System.String | segment | Variation segment. |
Populate(IContentBase, ImagingAutoFillUploadField, String, String, String)
Populates the auto-fill properties of a content item, for a specified auto-fill configuration.
Declaration
public void Populate(IContentBase content, ImagingAutoFillUploadField autoFillConfig, string filepath, string culture, string segment)
Parameters
Type | Name | Description |
---|---|---|
IContentBase | content | The content item. |
ImagingAutoFillUploadField | autoFillConfig | The auto-fill configuration. |
System.String | filepath | The filesystem path to the uploaded file. |
System.String | culture | Variation language. |
System.String | segment | Variation segment. |
Remarks
The filepath
parameter is the path relative to the filesystem.
Reset(IContentBase, ImagingAutoFillUploadField, String, String)
Resets the auto-fill properties of a content item, for a specified auto-fill configuration.
Declaration
public void Reset(IContentBase content, ImagingAutoFillUploadField autoFillConfig, string culture, string segment)
Parameters
Type | Name | Description |
---|---|---|
IContentBase | content | The content item. |
ImagingAutoFillUploadField | autoFillConfig | The auto-fill configuration. |
System.String | culture | Variation language. |
System.String | segment | Variation segment. |