This is a migrated thread and some comments may be shown as answers.

Input type="file" is not working inside rad ajax panel

1 Answer 105 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Covertix
Top achievements
Rank 1
Covertix asked on 05 Jan 2014, 04:55 PM
I have <input type="file"> inside RadAjaxPanel.
When I post back, I get no files on server side.

I tried the workaround you suggest:
    <radscriptblock id="RadScriptBlock1" runat="server">
 <script type="text/javascript">
     // on upload button click temporarily disables ajax to perform
     // upload actions
     function conditionalPostback(sender, args) {
         if (args.get_eventTarget() == "<%= ButtonSubmit.UniqueID %>") {
             args.set_enableAjax(false);
         }
     }
 </script>
</radscriptblock>
    <telerik:radajaxpanel runat="server" id="RadAjaxPanel1" clientevents-onrequeststart="conditionalPostback">
 <telerik:RadUpload runat="server" id="RadUpload1" />
 <asp:Button id="Button1" runat="server" text="Upload" />
</telerik:radajaxpanel>


but I get "Access is denied" error.

How can I upload a file within this rad ajax panel?

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 06 Jan 2014, 11:44 AM
Hi,

Please have a look into this forum thread which discuss about the same issue.

Hope this will helps you.
Thanks,
Princy.


Tags
Ajax
Asked by
Covertix
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or