Hi,
Generally, you need to have a DocumentID (as the uploader works with particular document, not with node). Then you can set the DocumentID property of the control.
The DirectUploader internally uses the DirectFileUploader:
// Add update control
// Dynamically load uploader control
DirectFileUploader dfuElem = Page.LoadUserControl("~/CMSModules/Content/Controls/Attachments/DirectFileUploader/DirectFileUploader.ascx") as DirectFileUploader;
You also need to set it's
InsertMode property to
false to make the control use the
update mode to allow overwriting the previous (existing) file version.
Should you need any additional details, please feel free to ask.
Regards,
Zdenek