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

2014-Q1 : Bugs in Chrome & Safari ?

6 Answers 95 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Christophe
Top achievements
Rank 1
Christophe asked on 28 Apr 2014, 02:00 AM
Hi There,

I've just upgraded my site to the latest version and it appears there is some bug with Chrome & Safari. It works fine with Firefox, didn't try with IE (but really, is there anyone out there still using IE ? :) )
I didn't notice anything with the previous version, which I think was 2013 Q3.

Roughly, what I'm doing is loading a usercontrol containing my Async Upload control through an AjaxManager. Pretty basic.
As soon as my control is loaded, here's what I get in my console:

01.Uncaught ReferenceError: Invalid left-hand side in assignment VM936:148
02.(anonymous function) VM936:148
03.Telerik.Web.UI.RadProgressManager._createSafariIFrame Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:92
04.Telerik.Web.UI.RadProgressManager._createSafariPoller Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:67
05.(anonymous function) Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
06.(anonymous function) Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
07.Sys._Application.raiseLoad Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
08.Sys.WebForms.PageRequestManager._pageLoaded Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:15
09.Sys.WebForms.PageRequestManager._scriptsLoadComplete Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:15
10.(anonymous function) Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
11.(anonymous function) Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
12.Sys._ScriptLoader._loadScriptsInternal Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
13.Sys._ScriptLoader._loadScriptsInternal Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
14.Sys._ScriptLoader._loadScriptsInternal Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
15.Sys._ScriptLoader._loadScriptsInternal Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
16.Sys._ScriptLoader._loadScriptsInternal Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
17.Sys._ScriptLoader._loadScriptsInternal Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
18.Sys._ScriptLoader._nextSession Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
19.Sys._ScriptLoader._loadScriptsInternal Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
20.Sys._ScriptLoader._scriptLoadedHandler Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
21.(anonymous function) Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
22.(anonymous function) Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6

And :

01.Uncaught TypeError: Cannot set property '_primaryProgressBarElement' of undefined Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:1440
02.Telerik.Web.UI.RadProgressArea._setupSafariProgressAreaControls Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:1440
03.Telerik.Web.UI.RadProgressManager._setupSafariProgressAreas Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:73
04.Telerik.Web.UI.RadProgressManager._createSafariIFrame Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:94
05.Telerik.Web.UI.RadProgressManager._createSafariPoller Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:67
06.(anonymous function) Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
07.(anonymous function) Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
08.Sys._Application.raiseLoad Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
09.Sys.WebForms.PageRequestManager._pageLoaded Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:15
10.Sys.WebForms.PageRequestManager._scriptsLoadComplete Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:15
11.(anonymous function) Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
12.(anonymous function) Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
13.Sys._ScriptLoader._loadScriptsInternal Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
14.Sys._ScriptLoader._loadScriptsInternal Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
15.Sys._ScriptLoader._loadScriptsInternal Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
16.Sys._ScriptLoader._loadScriptsInternal Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
17.Sys._ScriptLoader._loadScriptsInternal Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
18.Sys._ScriptLoader._loadScriptsInternal Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
19.Sys._ScriptLoader._nextSession Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
20.Sys._ScriptLoader._loadScriptsInternal Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
21.Sys._ScriptLoader._scriptLoadedHandler Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
22.(anonymous function) Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
23.(anonymous function) Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6

The second one is probably more useful, therefore I clicked on it and it brought me there on the row 1440 of "Telerik.Web.UI.Upload.RadProgressManager.js":

},_setupSafariProgressAreaControls:function(){if($telerik.RadUpload_isIFrameProgress){this._getSafariProgressArea()._primaryProgressBarElement=this._primaryProgressBarElement;

This 'bug' does not prevent me to upload any file but then none of my handlers are being called except for the HttpHandlerUrl defined on the control, hence I can't use it.

Hope this is useful and will help you in your investigation.

Cheers,

Chris

6 Answers, 1 is accepted

Sort by
0
Christophe
Top achievements
Rank 1
answered on 29 Apr 2014, 04:46 AM
No one ? This is pretty annoying as it prevents me to release my site.
0
Boyan Dimitrov
Telerik team
answered on 30 Apr 2014, 07:38 PM
Hello Chris,

I would like to clarify that recently we modified the some of the RadProgressManager logic  that is related Google chrome and Safari browsers. Please try to update with our latest internal build and let us know how that worked.

Regards,
Boyan Dimitrov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Christophe
Top achievements
Rank 1
answered on 05 May 2014, 05:20 AM
Hi Boyan.

Thanks for your answer and suggestion to use the latest InBuild. I did upgrade my project using the version 425_Dev_HotFix and it solved this issue for Chrome and Safari. Thank you for this. Although I don't really like using that kind of patch for production environment...

Other than this, it did create another issue, still for Chrome and Safari (works well in FF) : The Uploaded file content type is null when uploading a simple zip file. Am I missing something ? It does this as well for MSI files.

Would you have any idea ?

Cheers,

Chris
0
Princy
Top achievements
Rank 2
answered on 06 May 2014, 01:04 PM
Hi Chris, 

Unfortunately I couldn't replicate the issue at my end. Please have a look into the sample code snippet which works fine at my end. Please provide your code if it doesn't help.

ASPX:
<telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" OnFileUploaded="RadAsyncUpload1_FileUploaded">
</telerik:RadAsyncUpload>
<telerik:RadButton ID="RadButton1" runat="server" Text="Upload">
</telerik:RadButton>

C#:
protected void RadAsyncUpload1_FileUploaded(object sender, Telerik.Web.UI.FileUploadedEventArgs e)
{
    string contentType = e.File.ContentType;
}

Thanks,
Princy.
0
IT
Top achievements
Rank 1
answered on 21 May 2014, 02:17 PM
Just wanted to confirm i've also got the same bug

e.File.ContentType works fine in Firefox but not so in Chrome

0
Plamen
Telerik team
answered on 26 May 2014, 08:50 AM
Hello,

The issue is caused by the fact that Chrome browser does not set type to the zip files uploaded. The other files have the type assigned correctly. This field is used by RadAsyncUpload to set the ContentType. You can observe the issue event with     <input type="file" /> . If you upload a file and inspect the element you can see that files[0].type element is empty string in chrome and correct type in FireFox.

Hope this will explain the issue.


Regards,
Plamen
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
AsyncUpload
Asked by
Christophe
Top achievements
Rank 1
Answers by
Christophe
Top achievements
Rank 1
Boyan Dimitrov
Telerik team
Princy
Top achievements
Rank 2
IT
Top achievements
Rank 1
Plamen
Telerik team
Share this question
or