AssetServicesUploadAssetPackage Method

Ingeniux CMS Web Services API

Uploads a zip file, and creates all files within the zip file as assets, with default schemas for their extensions. The folders structure within the zip file is replicated as asset folders

Namespace:  IngeniuxCMService
Assembly:  IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.3.70
Syntax

public XHRServiceResponseGeneric<AssetZipUploadReturnInformation> UploadAssetPackage(
	Stream FileByteStream
)

Parameters

FileByteStream
Type: System.IOStream
The zip file stream, including the zip file content and parameters for asset creation

Return Value

Type: XHRServiceResponseGenericAssetZipUploadReturnInformation

Information of created assets and asset folders from the zip package

Examples

Sample JSON return

JavaScript
{
    "AssetFolders": [
      "af/716",
      "af/717",
      "af/718",
      "af/719",
      "af/720"
    ],
    "Assets": [
      "a/9686",
      "a/9687",
      "a/9688",
      "a/9689",
      "a/9690",
      "a/9691",
      "a/9692",
      "a/9693",
      "a/9694",
      "a/9695",
      "a/9696",
      "a/9697",
      "a/9698",
      "a/9699"
    ],
    "Errors": [],
    "ManifestAssetId": null,
    "RootFolderId": "af/716",
    "NamingConflictAssetId": null,
    "SchemasToChoose": null,
    "TempFileLocation": null,
    "pageAction": null,
    "properties": null,
    "queryString": null
}
See Also

Reference