I was too enthusiast :(
The upload process runs smoothly.
But once the upload is done, if i remove one attachment, then it resets the whole uploader and remove all atachments.
In the same way, submitting the whole form in order to copy the uploaded file fails as Items list is empty.
Here is what I did:
protected CuteWebUI.UploadAttachments tDocUpload;
protected Button bSubmit;
protected void Page_Load(object sender, EventArgs e) {
if (!this.IsPostBack) {
tDocUpload.ShowCheckBoxes = false;
}
tDocUpload.TempDirectory = @"d:\myTmpFolder\";
bSubmit.Click += new EventHandler(this.bSubmit_click);
}
protected void bSubmit_click(object sender, System.EventArgs e) {
foreach (AttachmentItem oFile in tDocUpload.Items) {
oFile.MoveTo(xxxx);
}
}
Thanks for your advices.