I have a RadAsyncUpload control that is declared dynamically on the server side. It is working fine. However, I would like to change the filename before it is saved. I tried to set the OnFileUploaded property, but I get the message
'Telerik.Web.UI.RadAsyncUpload.OnFileUploaded (Telerik.Web.UI.FileUploadedEventArgs)' is inaccessible due to its protection level.
How do I set the OnFileUploaded property? Alternatively, how else could I change the file name of the file before saving it to the sever?
Here is where I declare the RadAsyncUpload control:
'Telerik.Web.UI.RadAsyncUpload.OnFileUploaded (Telerik.Web.UI.FileUploadedEventArgs)' is inaccessible due to its protection level.
How do I set the OnFileUploaded property? Alternatively, how else could I change the file name of the file before saving it to the sever?
Here is where I declare the RadAsyncUpload control:
RadAsyncUpload upload =
new
RadAsyncUpload();
upload.ID =
"rauChoice"
;
upload.Attributes.Add(
"runat"
,
"server"
);
upload.TargetFolder =
"~/App_Images/uploads"
;
upload.TemporaryFolder =
"~/App_Data/RadUploadTemp"
;
upload.OnFileUploaded =
"rauChoice_FileUploaded"
;