Hi,
In the UploaderEventHandler, I am setting the temp path before uploading the files,
void Uploader_FileUploaded(object sender, UploaderEventArgs args)
{
using (System.IO.Stream stream = args.OpenStream())
{
string path = "D:\\UploadedFiles\\";
Attachments1.TempDirectory = path;
Attachments1.Upload(args.FileSize, args.FileName, stream);
}
}
This works fine. But when I try to delete the files, it does not delete it from the disk. The 'Attachements1' does not retain its items. Also, the inbuilt 'Remove' feature doesn't delete the files from disk.
protected void ButtonDeleteAll_clicked(object sender, EventArgs e)
{
Attachments1.DeleteAllAttachments();
}
How can I make delete and remove work in this case?
Thanks,