Hi,
can i use AttachmentRemoveClicked event to delete an uploaded file?
<%@Page Language="c#"%>
<%@Register Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" TagPrefix="CuteWebUI"%>
<html>
<head>
<title>Simple Upload</title>
<script runat="server">
void InsertMsg(string msg)
{
ListBoxEvents.Items.Insert(0, msg);
ListBoxEvents.SelectedIndex = 0;
}
void Uploader1_FileUploaded(object sender, UploaderEventArgs args)
{
InsertMsg("File uploaded! " + args.FileName + ", " + args.FileSize + " bytes.");
args.CopyTo("c:\\temp\\"+args.FileName);
}
void Uploader1_AttachmentRemoveClicked(object sender, UploaderEventArgs args)
{
InsertMsg("File deleted! " + args.FileName + ", " + args.FileSize + " bytes.");
XXXXXXXXXXXXXXXXXXXXXXXXXXX
}
</script>
</head>
<body><form id="Form1" method="post" runat="server">
<div>
<CuteWebUI:UploadAttachments ID="Uploader1" runat="server"
InsertButtonID="btnUpload" OnFileUploaded="Uploader1_FileUploaded"
onattachmentremoveclicked="Uploader1_AttachmentRemoveClicked">
</CuteWebUI:UploadAttachments>
<p>
Server Trace:
<br/>
<asp:ListBox runat="server" ID="ListBoxEvents"/>
</p>
</div>
</form>
</body>
</html>