Click or drag to resize

AssetServicesMultiPartUpload Method


Handles multi-part form upload and creates a new asset with upload binary as asset content

Namespace:  IngeniuxCMService
Assembly:  IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.3.169
Syntax
public XHRServiceResponseGeneric<AssetCreateReturnInformation> MultiPartUpload(
	Stream FileByteStream
)

Parameters

FileByteStream
Type: System.IOStream

Content and parameters for the asset to be created

Examples

Request payload example:

------WebKitFormBoundaryBh9f51frBtjD7iLe
Content-Disposition: form-data; name="schemadefault"
true
------WebKitFormBoundaryBh9f51frBtjD7iLe
Content-Disposition: form-data; name="updateonconflicts"
true
------WebKitFormBoundaryBh9f51frBtjD7iLe
Content-Disposition: form-data; name="parentfolder"
af/25
------WebKitFormBoundaryBh9f51frBtjD7iLe
Content-Disposition: form-data; name="schemaid"
------WebKitFormBoundaryBh9f51frBtjD7iLe
Content-Disposition: form-data; name="assetname"
------WebKitFormBoundaryBh9f51frBtjD7iLe
Content-Disposition: form-data; name="file"; filename="fr-ca_dup_FRENCH-final.xml"
Content-Type: text/xml
------WebKitFormBoundaryBh9f51frBtjD7iLe--

Return Value

Type: XHRServiceResponseGenericAssetCreateReturnInformation

Information of upload asset

Examples
Sample JSON return
JavaScript
{
    "AssetFolders": null,
    "Assets": null,
    "Errors": [],
    "ManifestAssetId": null,
    "RootFolderId": null,
    "NamingConflictAssetId": null,
    "SchemasToChoose": null,
    "TempFileLocation": null,
    "pageAction": "newasset",
    "properties": {
      "name": "fr-ca_dup_FRENCH-final",
      "allowedCategoryRoots": [],
      "ancestors": [
        "af/25"
      ],
      "assignedGroup": null,
      "assignedUser": {
        "name": "Jim",
        "email": "jime@ingeniux.com",
        "userId": "jim"
      },
      "canClaimPage": false,
      "checkedOut": true,
      "error": null,
      "icon": 15,
      "isAssignedToOtherUser": false,
      "isEditable": true,
      "isFolder": false,
      "isInWorkflow": false,
      "justRecycled": false,
      "languageRootId": "af/25",
      "lingualMaps": null,
      "locale": "en-us",
      "localeInherited": true,
      "markedForPublish": false,
      "markedForPublishAny": false,
      "markedForPublishPropagated": true,
      "nextPageIndex": 0,
      "noDnd": false,
      "pageId": "a/9683",
      "parentId": "af/25",
      "pendingMasterVersion": 0,
      "referenceProps": {
        "created": "20180402T22:53:10",
        "createdBy": "jim",
        "endDate": "",
        "lastModified": "20180402T22:53:10",
        "lastModifiedBy": "jim",
        "publishAs": "",
        "startDate": ""
      },
      "remoteServer": "",
      "schemaFriendlyName": null,
      "schemaName": "XML",
      "schemaOnLatestVersion": false,
      "securityLevel": 2,
      "userCanCopyPage": true,
      "workflow": null,
      "assetSummary": {
        "allowedExtensions": [
          ".xml",
          ".xaml",
          ".saml",
          ".dita",
          ".ditamap"
        ],
        "audioCodec": null,
        "audioCodecVersion": null,
        "dimensions": null,
        "dpi": 0,
        "duration": null,
        "videoCodec": null,
        "videoCodecVersion": null
      },
      "assetType": "Xml",
      "comments": "",
      "extension": ".xml",
      "externalUrl": "",
      "fileSize": 24783,
      "isUnmanaged": false,
      "sourceUri": null
    },
    "queryString": {
      "pageName": null,
      "parentPageId": "af/25",
      "schemaFile": null
    }
  }
See Also