Administering an Encyclopedia volume : About Encyclopedia-level management operations : Uploading a file : Copying file properties when uploading a file
 
Copying file properties when uploading a file
Often, when you upload a new version of an executable file to an Encyclopedia volume, the new version must replace the previous version. You must therefore ensure that the permissions and other properties of the previous version apply to the new one. To automate this task, use CopyFromLatestVersion in UploadFile. CopyFromLatestVersion is available whether you replace the existing version or create a new version during the upload. The following code example shows how to copy two properties, the description and the archive rules, from the previous version of the Sales report:
<SOAP-ENV:Body>
<UploadFile>
<NewFile>
<Name>/Reports/Sales.rptdesign</Name>
</NewFile>
<CopyFromLatestVersion>
<String>Description</String>
<String>ArchiveRules</String>
</CopyFromLatestVersion>
<Content>
<ContentId>Sales.rptdesign</ContentId>
<ContentType>application/octet-stream</ContentType>
<ContentEncoding>utf-8</ContentEncoding>
</Content>
</UploadFile>
</SOAP-ENV:Body>