public void AttachFileToSerializationItem(string itemPath, string filePath)
        {
            SyncItem syncItem = SyncItemProvider.GetSyncItem(itemPath);

            syncItem.AttachMediaFile(new FileInfo(filePath));
            SyncItemProvider.SaveSyncItem(syncItem, itemPath);
        }
        public void DetachFileFromSerializationItem(string itemPath)
        {
            SyncItem syncItem = SyncItemProvider.GetSyncItem(itemPath);

            syncItem.RemoveField(FileTemplateFields.Blob.FieldId);
            syncItem.SetFieldValue(FileTemplateFields.Size, String.Empty);
            syncItem.SetFieldValue(FileTemplateFields.Extension, String.Empty);
            syncItem.SetFieldValue(FileTemplateFields.MimeType, String.Empty);
            SyncItemProvider.SaveSyncItem(syncItem, itemPath);
        }