This question is locked. New answers and comments are not allowed.
Hi,
I have a scenario in which I need to upload some files which are in Session variable to RadAsyncUpload. Please help me with a code I used this but it shows casting error.
aspx:
<telerik:RadAsyncUpload ID="FileUploadTest" MultipleFileSelection="Automatic" OnClientFileUploading="onClientFileUploading" PostBackTrigger="btnSubmitChennai"
OnClientValidationFailed="OnClientValidationFailed" AllowedFileExtensions=".pdf,.doc,.docx,.xls,.xlsx,.csv,.txt,.rtf,.mp3,.wma,.mpg,.flv,.avi,.jpg,.jpeg,.png,.gif,.tiff,.xps,.zip"
AllowedMimeTypes="application/pdf, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, text/csv, text/plain, application/rtf, audio/mpeg3, audio/x-mpeg-3, video/mpeg, video/x-mpeg, audio/x-ms-wma, audio/mpeg, video/mpeg,video/x-flv, video/x-msvideo, image/jpeg, image/png, image/gif, image/tiff, application/vnd.ms-xpsdocument,application/zip, application/x-compressed, application/x-zip-compressed"
runat="server">
</telerik:RadAsyncUpload>
aspx.cs
FileUploadTest= (UploadedFile)Session["FileUpload1"];
I used this also
FileUploadTest= (RadAsyncUpload)Session["FileUpload1"];
I have a scenario in which I need to upload some files which are in Session variable to RadAsyncUpload. Please help me with a code I used this but it shows casting error.
aspx:
<telerik:RadAsyncUpload ID="FileUploadTest" MultipleFileSelection="Automatic" OnClientFileUploading="onClientFileUploading" PostBackTrigger="btnSubmitChennai"
OnClientValidationFailed="OnClientValidationFailed" AllowedFileExtensions=".pdf,.doc,.docx,.xls,.xlsx,.csv,.txt,.rtf,.mp3,.wma,.mpg,.flv,.avi,.jpg,.jpeg,.png,.gif,.tiff,.xps,.zip"
AllowedMimeTypes="application/pdf, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, text/csv, text/plain, application/rtf, audio/mpeg3, audio/x-mpeg-3, video/mpeg, video/x-mpeg, audio/x-ms-wma, audio/mpeg, video/mpeg,video/x-flv, video/x-msvideo, image/jpeg, image/png, image/gif, image/tiff, application/vnd.ms-xpsdocument,application/zip, application/x-compressed, application/x-zip-compressed"
runat="server">
</telerik:RadAsyncUpload>
aspx.cs
FileUploadTest= (UploadedFile)Session["FileUpload1"];
I used this also
FileUploadTest= (RadAsyncUpload)Session["FileUpload1"];