I am using Ayscupload to on a site. The upload works mostly.
I have an issue I can't place. Sometimes, mostly on mobile, the site will not upload the first file. I thought it might have been the progress bar so I removed it and I got the same result.
The first file uploads and the little yellow dot blinks but it never finishes the file. Now I can select another file while this one is blinking and that file works. When I press the "Upload" button to save the files all of them will be there except that firston If I leave the upload page and then return to it the page will now work perfectly for that session. It is only the FIRST file on the FIRST time. It is frustrating my users.... Thoughts??
Here is the DIV that contains the control! I am using ASP.NET 3.5 and AJAX
<asp:Label ID="lblNoResults" runat="server" Visible="true">No Uploaded Files Yet.</asp:Label>
<asp:Repeater ID="repResults" runat="server" Visible="false">
(<%#DataBinder.Eval(Container.DataItem, "ContentLength").ToString & " bytes"%>)
<asp:Repeater ID="repInvalidResults" runat="server" Visible="false">
File: <%#DataBinder.Eval(Container.DataItem, "Filename")%>
(<%#DataBinder.Eval(Container.DataItem, "ContentLength").ToString() + " bytes"%>)
Mime-type: <%#DataBinder.Eval(Container.DataItem, "ContentType").ToString()%>
<br /><br />
10 Answers, 1 is accepted
Unfortunately, I do not see RadAsyncUpload declaration in the div provided. Could you double-check if the posted snippet contains the RadAsyncUpload markup? I would suggest you to prepare an isolated runnable sample which could be used for the issue reproduction. And could you specify the OS version and browser type and version used to reproduce the issue?
As a side note, since you are using .NET 3.5, I would like to inform you that there is a general ASP.NET AJAX Extensions issue, concerning the new iOS 8 and OS X Safari versions. It is affecting sites using ASP.NET 3.5. Basically, the new Safari version is not properly recognized by the AJAX framework as a browser that supports partial rendering, which breaks the AJAX technology. This seems as a probable reason for the issue faced.
If you are facing the same issue, in order to fix this issue, you need to edit your browser definition files so that the latest Safari is properly recognized. You can find more detailed information about the issue as well as a workaround for it in the following stackoverflow thread.
Yeah Feel like a goof! There is a RadUploadAsync and I will have the code below. It is not the iOS 8 issue but thanks fro the heads up! This is mostly Android!
I'm using 2013.3.1015.40 and VB.NET with no real code behind for this section but I will post. The weird thing is it works after the first file! I will also say, not that this is the problem, we converted from the old Radupload.
Thanks for any help! We are getting real anxious over here!
<telerik:RadProgressManager id="rdProgress1" runat="server" />
<telerik:RadAsyncUpload ID="upPics" runat="server" OverwriteExistingFiles="false" MultipleFileSelection="Automatic"
AllowedFileExtensions=".jpg,.gif,.jpe,.jpeg,.png" MaxFileSize="10485760" />
<asp:LinkButton ID="buttonSubmit" runat="server" Text="Upload" CssClass="medium button blue" />
<asp:HyperLink ID="hypReturn" runat="server" CssClass="medium button blue" >Return</asp:HyperLink>
Unfortunately the issue is not reproducible on my side with latest Chrome browser for Android.
Could you specify the Android version used, the browser and its version? Thus, we would determine what module is used for uploading. One option to debug the file upload is to connect your mobile device to the PC and open a debug session in Chrome. Thus, you would be able to see all requests from the real device and their status when uploading - video.
In addition, could you please handle the OnClientFileUploadFailed event and the OnClientValidationFailed event and send us the error message?
Also, you may try to set the following configuration in the web.config:
And last, I tested with the version you pointed and although the issue is not reproducible on my side, it may be one that has been fixed in latest version. So you may download a free latest trial and test if the issue is still reproducible with it.
Thank you for your response. As usually happens I got side tracked and now I am back to this issue.
It still occurs. We did try a newer version. I still have to try the change to the web.config as you mentioned.
BUT I fired up Chorme developer tools and looked at the console when uploading that first file. I get the same results as the mobile clients do, the first file fails. But iknow I see an error message!!! Maybe you can tell me what it means!
The error means that the JSON you are trying to parse is not well formatted - it contains characters which break the parsing process. This is explained with a few examples in the parseJSON() docs. The following forum thread also deals with a similar error.
Thanks for the info. That's what I got.
And call me stupid but I am not calling parseJSON myself. Google Chrome points to three files; one is JQuery, the other two are Telerik Files.
That's where I am confused...how can I change that? What is actually angering it??
It also only happens on the mobile version of the site. Whether or not its loaded on the desktop.
First file only! I'm stumped i looked through my html line by line on both the page and the master page. No Errors.
I fixed some CSS errors thinking that might help! NOPE! No error message in the on client error handles...at least not that I could produce. It may be interesting the file that fails never makes it to the temp upload dir.
Where do i want to put the location tag in the web.config?? never done that before...worth a shot.
I tried isolating the control for fun. Same result.
The page below has no code in the code behind and has only the following HTML.
At this point it seems like a problem with the control itself or some config problem.
There is a known compatibility issue with AjaxControlToolkit and it is the most likely cause for the issue. You may find more information about it and how to resolve it in the Telerik UI for ASP.NET AJAX and AJAX Control Toolkit help article.