I am trying to use the AsyncUpload in an MVC application. Added the control to a view and all the client side validations worked fine. I am not able to figure out how to get my FileUploaded event handler triggered on file upload.
I added the following Action to one of the controllers, managed to get the submitted file through the form collection.
I am recieving something like the following as part of the form["RadAsyncUpload1_ClientState"] member.
This seems like json representation of the FileUploadedEventArgs. Can someone let me know how to create the FileUploadedEventArgs type object with this, so that I can process the file contents?
Let me know if there is any other supported way of dealing with this control in MVC applications.
I added the following Action to one of the controllers, managed to get the submitted file through the form collection.
public
ActionResult UploadFileToServer(FormCollection form)
I am recieving something like the following as part of the form["RadAsyncUpload1_ClientState"] member.
{
'isEnabled'
:
'true'
,
'uploadedFiles'
:[{
"fileInfo"
:{
"FileName"
:"New Text
Document.jpg
","
ContentType
":"
image/jpeg
","
ContentLength
":7,"
Index
":0},"
metaData
":"
/wEFsQF7IlRlbXBGaWxlTmFtZSI6Im5rMW10MGQxLjFxZSIsIkFzeW5jVXBsb2FkVHlwZU5hbWUiOiJUZWxlcmlrLldlYi5VSS5VcGxvYWRlZEZpbGVJbmZvLCBUZWxlcmlrLldlYi5VSSwgVmVyc2lvbj0yMDEyLjMuMTAxNi40MCwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj0xMjFmYWU3ODE2NWJhM2Q0In2cjHHKucOwL9XHbTwMx7hNK3SkzeOs2R2WtBZJyOqw3w=="}]}
Let me know if there is any other supported way of dealing with this control in MVC applications.