Table of Contents

Interface IAssetItemUploader

Namespace
Kentico.Xperience.Admin.Base
Assembly
Kentico.Xperience.Admin.Base.dll

Interface for uploading assets.

[Obsolete("Media libraries and their APIs are obsolete and will be discontinued in the future. Please migrate all media library files to Content hub and use their corresponding content item APIs.")]
public interface IAssetItemUploader
Extension Methods

Methods

Upload(int, string, IUploadedFilesCollection, string)

Uploads assets into specified assets library.

Task<IEnumerable<AssetItem>> Upload(int libraryIdentifier, string folderPath, IUploadedFilesCollection files, string allowedExtensions)

Parameters

libraryIdentifier int

Assets library identifier.

folderPath string

Path of the folder to upload the assets to.

files IUploadedFilesCollection

Files to upload.

allowedExtensions string

Allowed file extensions to be uploaded. If empty value is provided, setting value is used.

Returns

Task<IEnumerable<AssetItem>>