BrightSign Network Web API Reference Manual v.3.8 User Manual

Page 35

Advertising
background image

23

Parameters

[string] uploadToken: The token of the upload that was initialized by the StartFileUpload() or
StartWebPageUpload() method. A descriptive error is returned if the string value is empty or not specified.

[string] sessionToken: The token of the upload session initialized by the StartWebPageUpload() method.
This token should only be provided if the client is uploading a set of webpage assets.

[int] partNumber: The number of the part, starting from 0.

[base64Binary] data: The binary data of the file chunk.

[long] offset: The offset of the current file chunk. The first chunk has an offset of 0. A descriptive error is
returned if the offset value is not positive.

ContentUploadStatus CompleteFileUpload(string uploadToken, string sessionToken, string
filename, long filesize, int chunksCount, enum ContentType, dateTime fileLastModifiedDate,
string virtualPath, base64Binary fileThumb, string sha1Hash)

Description
Returns the Content ID of the uploaded file if file upload is successful. Otherwise, it returns a descriptive error. If a
specified parameter is different between the

StartFileUpload() and CompleteFileUpload() calls on a file, the

specification in the

CompleteFileUpload() call will overwrite the original StartFileUpload() specification.

Required Permissions
Content: Upload Content

Parameters

[string] uploadToken: The token of the upload that was initialized by the StartFileUpload() method. A
descriptive error is returned if the string value is empty or not specified.

[string] sessionToken: The token of the upload session initialized by the StartWebPageUpload() method.
This token should only be provided if the client is uploading a set of webpage assets.

[string] filename: The name of the uploaded file. A descriptive error will be returned if any of the following
conditions occur:

Advertising