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

Upload crash and display error

2 Answers 80 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Freddy
Top achievements
Rank 1
Freddy asked on 07 Nov 2013, 05:30 PM
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

Thanks
Freddy

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 08 Nov 2013, 03:43 AM
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:

<configuration>
...
    <system.web>
 
      <httpRuntime maxRequestLength="102400" executionTimeout="3600" />
      ...
    </system.web>
</configuration>

The maxRequestLength is expressed in KB and executionTimeout in seconds.

Hope this helps,
Shinu.
0
Freddy
Top achievements
Rank 1
answered on 09 Nov 2013, 03:01 PM
Shinu, Your assumption was absolutely correct. I modified the web.config values and now I can upload huge files. Thanks for your support.
Tags
AsyncUpload
Asked by
Freddy
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Freddy
Top achievements
Rank 1
Share this question
or