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
libraryIdentifierintAssets library identifier.
folderPathstringPath of the folder to upload the assets to.
filesIUploadedFilesCollectionFiles to upload.
allowedExtensionsstringAllowed file extensions to be uploaded. If empty value is provided, setting value is used.
Returns
- Task<IEnumerable<AssetItem>>