Interface IAssetItemUploader
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
intAssets library identifier.
folderPath
stringPath of the folder to upload the assets to.
files
IUploadedFilesCollectionFiles to upload.
allowedExtensions
stringAllowed file extensions to be uploaded. If empty value is provided, setting value is used.
Returns
- Task<IEnumerable<AssetItem>>