AjaxControlToolkit AsyncFileUpload does not work when deploying on the Internet

In case this matters, the following is displayed inside the toolkit popup: it has an update panel.

<p>
    <asp:Label Text="Picture" runat="server" Width="75"></asp:Label>
    <ajaxToolkit:AsyncFileUpload ID="MediaPicture" runat="server" Width="200"
        OnClientUploadStarted="BlockSubmits" ClientIDMode="AutoID"
        OnClientUploadError="UnblockSubmits" PersistFile="true"
        OnClientUploadComplete="UnblockSubmits" 
    />
</p>

The javascript functions simply lock / release the submit button to prevent loading problems.

This works fine on the local host, but when deploying online to the GoDaddy server, I cannot upload files of several kilobytes, even if locally I can upload larger files (~ 2 MB) ...

It seems I can’t find the reason for this behavior, can it be in IIS? I read something about clearing the application pool before the download is complete, can this happen?

Btw, just in case, on the server side, I just take an image from this control

byte[] picture = MediaPicture.FileBytes ?? (string.IsNullOrEmpty(mediaID) ? null : Media.SelectByID(int.Parse(mediaID)).GetPicture());

- , , , ,

.

, ?

!

+3
4

, - , AsyncFileUpload , ...

, .

, , , , , "" "-".

+1

Assync ajax - ASP.NET.

web.config IIS. ... web.config

<httpRuntime maxRequestLength="40960"/>

, SWFUpload... .

,

0

, IIS ( Go Daddy). IIS, ? . IIS 7.0 , IIS 6.0.

0

, , - " " IE, .

However, I updated the Ajax Control Toolkit and the problem was completely resolved. There is no longer any need to contact security settings.

0
source

Source: https://habr.com/ru/post/1783038/


All Articles