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());
- , , , ,
.
, ?
!