Upload crash and display error

3 posts, 1 answers
  1. Freddy
    Freddy avatar
    25 posts
    Member since:
    Feb 2013

    Posted 07 Nov 2013 Link to this post

    Telerik support

    I am new to this control and about to use this to upload image files in my website. I tried the below code
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadAsyncUpload runat="server" ID="radasyncUpload1" MultipleFileSelection="Automatic" AllowedFileExtensions=".jpg" TargetFolder="~/UploadImages/" />
    <telerik:RadButton ID="rbtnUpload" runat="server" Text="Upload"></telerik:RadButton>

    Some times when I run the page, IE display a popup with an error telling that the page cannot be found and In Firefox, the upload will start and it wont complete. I can see the yellow button blinking continuously. Suppose if I cancel that file, rest of the files are successfully uploaded. I am having the 2013.2.522 web.ui.dll

  2. Answer
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 07 Nov 2013 Link to this post

    Hi Freddy,

    The mark-up you tried is working fine at my end. So one possible reason behind this issue can be the httpRuntime settings defined in the web.config file. If you are trying to upload a file which has a file size greater than the value set for the maxRequestLength or if you have set a very small value to the executionTimeout so that time out can happen before the full file gets uploaded, in such cases IE will display a script error with page not found message and in other browsers the file upload wont progress as if it has crashed. So you can check your web.config file for the above settings. Please check the following XML:

          <httpRuntime maxRequestLength="102400" executionTimeout="3600" />

    The maxRequestLength is expressed in KB and executionTimeout in seconds.

    Hope this helps,
  3. DevCraft R3 2016 release webinar banner
  4. Freddy
    Freddy avatar
    25 posts
    Member since:
    Feb 2013

    Posted 09 Nov 2013 Link to this post

    Shinu, Your assumption was absolutely correct. I modified the web.config values and now I can upload huge files. Thanks for your support.
Back to Top