Long offset) – BrightSign Network Web API Reference Manual v.3.8 User Manual

Page 34

Advertising
background image

22

[enum: Auto, Image, Video, Audio, Webpage] contentType: The type of the content file. The default
type is “Image”.

[DateTime] fileLastModifiedDate: A value representing the last time the associated file was modified on
the user storage (e.g. the "Date modified" value in Windows). This value can also be initialized later by modifying
the

Content

entity.

[string] virtualPath: The path in the BSN Library to which the file should be uploaded (the default is
“\Shared\Incoming\”). If the path does not exist, it will be created. It must also contain leading and trailing slashes
and be no longer than 128 characters.

[base64Binary] fileThumb: The optional thumbnail data as a binary attachment. This parameter will be
generated by the server if it is not specified.

[string] sha1Hash: The SHA1 hash of the current file. The server performs verification of the uploaded file
using the specified hash. A descriptive error will be returned if the specified hash does not match the hash value
calculated by the server. This parameter is optional; the server-side hash verification process is skipped if this
parameter is not specified.

ContentUploadStatus AppendChunk(string uploadToken, int partNumber, binary data, long
offset)

Description
Appends chunks onto files that are larger than 256Kib. It returns True if the upload is successful. Otherwise, it returns
False.

Required Permissions
Content: Upload Content, Update Content

Note: The Update Content permission is only required if the CompleteFileUpload() is called with a
[string]contentId value that corresponds to an existing content entity (i.e. the client is attempting to overwrite
a content entity).

Advertising