SchemaDesignerServicesUploadThumbnail Method

Ingeniux CMS Web Services API

Uploads a thumbnail image for a given schema

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

public XHRServiceResponseGeneric<FileUploadResult> UploadThumbnail(
	Stream FileByteStream
)

Parameters

FileByteStream
Type: System.IOStream

The form data contains the image file content, and schema id

Examples

Sample Request Payload

JavaScript
------WebKitFormBoundaryIsc6Uv65BQgyyAkV
Content-Disposition: form-data; name="contentId"
AboutPage
------WebKitFormBoundaryIsc6Uv65BQgyyAkV
Content-Disposition: form-data; name="updateonconflicts"
true
------WebKitFormBoundaryIsc6Uv65BQgyyAkV
Content-Disposition: form-data; name="file"; filename="maxresdefault.jpg"
Content-Type: image/jpeg
------WebKitFormBoundaryIsc6Uv65BQgyyAkV--

Return Value

Type: XHRServiceResponseGenericFileUploadResult

Information on uploaded file

Examples

Sample JSON return

JavaScript
{
  "ContentFreezeEndTime": "",
  "ContentFreezeStartTime": "",
  "code": 0,
  "error": null,
  "message": {
    "uploadedFiles": [
      "xml\\_Thumbnails\\SchemaThumb_schemas_1-7.jpg"
    ]
    }
}
See Also

Reference