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

2 posts, 0 answers
  1. Tzach Kaufmann
    Tzach Kaufmann avatar
    95 posts
    Member since:
    Aug 2008

    Posted 05 Jan 2014 Link to this post

    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?
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 06 Jan 2014 Link to this post

    Hi,

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

    Hope this will helps you.
    Thanks,
    Princy.


  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top