I'm investigating migrating from the RadUpload control to the RadAsyncUpload tool and am seeing some weird behaviors.
I have a RadAsyncUpload control on my web page and I've customized the TemporaryFolder in the Page_Load. I've also set up the OnFileUploaded method to do some custom work because we want to store a record of the file in our EFile database.
When I do a postback ... the OnFileUploaded method fires and I can see that the e.File.GetName() method returns the correct name of my file but if I'm monitoring the TemporaryFolder -- the file name appears as names like "25j2deve.qc3" and "y20yq3q3.nz1". So then when my code goes to move the file from the TemporaryFolder to our own internal EFolder -- I keep getting the file does not exist because I'm trying to move it based on a file name from the e.File.GetName() method.
I'm also confused by the documentation/tutorial because it uses a function to set the e.IsValid. The function is called CheckUploadedFileValidity().
Where is that function? Is that something I need to write on my own? Is that built into a Telerik library somewhere?
Do I need to be using the .SaveAs() method here like we did in the RadUpload tool? All I want to do is get a file into the temp folder and then I'll move it to the final location from there.
I have a RadAsyncUpload control on my web page and I've customized the TemporaryFolder in the Page_Load. I've also set up the OnFileUploaded method to do some custom work because we want to store a record of the file in our EFile database.
When I do a postback ... the OnFileUploaded method fires and I can see that the e.File.GetName() method returns the correct name of my file but if I'm monitoring the TemporaryFolder -- the file name appears as names like "25j2deve.qc3" and "y20yq3q3.nz1". So then when my code goes to move the file from the TemporaryFolder to our own internal EFolder -- I keep getting the file does not exist because I'm trying to move it based on a file name from the e.File.GetName() method.
I'm also confused by the documentation/tutorial because it uses a function to set the e.IsValid. The function is called CheckUploadedFileValidity().
Where is that function? Is that something I need to write on my own? Is that built into a Telerik library somewhere?
Do I need to be using the .SaveAs() method here like we did in the RadUpload tool? All I want to do is get a file into the temp folder and then I'll move it to the final location from there.
e.IsValid = !CheckUploadedFileValidity();