Hi Brandon,
TreeNode.InsertAsNewCultureVersion
uses DocumentHelper.InsertAsNewCultureVersion
by default. And that method have a parameter of NewCultureDocumentSettings
type. Description of the type:
public class NewCultureDocumentSettings : BaseDocumentSettings
{
private bool mCreateVersion = true;
private bool mAllowCheckOut = true;
private bool mClearAttachmentFields = true;
...
}
So, by default your attachment fields are cleared during insert.
Try to call DocumentHelper.InsertAsNewCultureVersion
and pass to it a correct configuration, example:
DocumentHelper.InsertNewCultureVersion(new NewCultureDocumentSettings
{
ClearAttachmentFields = false,
Node = YourNode,
Tree = new TreeProvider(MembershipContext.AuthenticatedUser),
CopyAttachments = true,
CultureCode = YourCulture
});