el.c.
I think that is a bug , the attachments control would check the items while it loading the viewstate.
And that loadviewstate event if before the page_load, so please set that property in the init event:
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
UploadAttachments1.TempDirectory = @"C:\Windows\Temp";
}
Regards,
Terry