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

RadAsyncUpload control asking for login in SharePoint

13 Answers 330 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Nutan
Top achievements
Rank 1
Nutan asked on 28 Jul 2010, 07:01 AM
Hi ,

With the latest updates of RadAsyncUpload control, it asks for login credentials when a file is selected from browse window. We are using it in SharePoint Site.

This was working previously with earlier version and seems to be broken in the version 2010.2.713.20. When a sip file is selected from the browse window, the control keeps loading and does not complete the loading. 

Sometimes if the page is accessed over domain from another machine, it starts working but thats just sometimes. Its not at all working on same machine.

Its defined this way : 

<telerik:RadAsyncUpload ID="importPackage" runat="server" ControlObjectsVisibility="None" MaxFileInputsCount="1" EnableViewState="true" AllowedFileExtensions="zip" onkeypress="javascript:return false;" Localization-Select="browse" Width="300px" InputSize="45" Skin="Outlook" OverwriteExistingFiles="true" InitialFileInputsCount="1">
</telerik:RadAsyncUpload>

Not sure whats the problem. Can someone help ?  This is quite urgent.

Thanks,
Nutan

13 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 30 Jul 2010, 04:32 PM
Hello Nutan ,

The problem is most likely caused by the fact that RadAsyncUpload uses Flash, if available, to upload files starting with the Q2 release.

As a result the ASP.NET authentication cookie is not passed to the handler and the request is treated as unauthorized.

We'll research if we can fix this in future versions, but for the moment you need to exclude the Telerik.Web.UI.WebResource.axd from authorization in web.config:

<location path="Telerik.Web.UI.WebResource.axd">
    <system.web>
        <authorization>
            <allow users="*" />
        </authorization>
    </system.web>
</location>

Apologies for the caused inconvenience.

All the best,
Tsvetomir Tsonev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Nutan
Top achievements
Rank 1
answered on 02 Aug 2010, 01:58 PM
Hi,

This is not helping out anyway. Still its the same issue of login. Sometimes it worked with few scenarios like closing the browser and loading the Url again.

If its cause of Flash support, should downloading and installing the latest version of Flash Player fix this ? Or do we have an alternate behavior if flash is not available. I did install Latest Flash Player but its not working as expected.

Few days ago we had tried to see the behavior of new Q2 version and we could see ~/App_Data/RadUploadTemp directory being created under virtual directory of SharePoint site. That was when we provided the Target Path. I read in few links of forum that is a issue with the control when accessing Temp location. So if i dont provide any target folder path it would take the System temp location.. right ?
We could see that when a file is uploaded, there is a temp file generated in the RadUploadTemp which enventually gets deleted before the code could read it.  Some issue with TimeToLive..

Custom Handler is also not working as expected. We are not able to run the same in SharePoint context. When handler is accessed from SharePoint using Url as http://<machine>:<port>/sites/<site_name>/_admin/handler.ashx,l it throws "Index out of range exception"
Can someone help with this ?

Still the same issue of  continuously loading image and file not being uploaded. If we attach a wrong file it validates is quickly and displays the validation error.

Thanks,
Nutan
0
T. Tsonev
Telerik team
answered on 03 Aug 2010, 10:23 AM
Hello Nutan,

The most likely reason why you're still getting the login prompt is that Anonymous authentication is turned off by default in SharePoint.

We're currently researching how to fix this problem. For the moment you can either turn on Anonymous authentication or disable the Flash support in RadAsyncUpload:

<script type="text/javascript">
 
Telerik.Web.UI.RadAsyncUpload.Modules.Flash.isAvailable = function() { return false; }
 
</script>
 
<telerik:RadAsyncUpload ... />

Apologies for the caused inconvenience.

Regards,
Tsvetomir Tsonev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Nutan
Top achievements
Rank 1
answered on 03 Aug 2010, 10:55 AM
Hi Tsvetomir,

Thanks a lot for your reply.  Good news is that we got this working...

Had tried this option earlier but today came to know why this din't work out last time. Now its working very fine.

Appreciate your valuable support. :)

Thanks,
Nutan
0
T. Tsonev
Telerik team
answered on 05 Aug 2010, 04:40 PM
Hello Nutan ,

Great, I'm happy you've managed to get this running. We're still working on a proper fix, fingers crossed.

All the best,
Tsvetomir Tsonev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Tom
Top achievements
Rank 1
answered on 17 Nov 2010, 02:24 PM
Hi,

I'm experiencing the same problem as Nutan.  I've inserted both code snippets (web.config, and injected the javascript), but still I'm being promped with a login.  If I click on OK, the files are not uploaded, and the progress control "keeps loading".   Am I missing something, or did Nutan do something he's not telling the rest of us... ;-)

ps.  I've configured my web.config for a SharePoint 2007 portal accorindly.  Telerik controls are all working fine, except for this (asyncupload) one it seems.
0
Nutan
Top achievements
Rank 1
answered on 17 Nov 2010, 02:42 PM
Hi Tom,

Well am a girl...you completely changed me by saying he.. :).

Anyways to fix the issue you need to add the mentioned script not in header but place it above the Upload control..I hope that will work for you.

<
script type="text/javascript">
 
Telerik.Web.UI.RadAsyncUpload.Modules.Flash.isAvailable = function() { return false; }
 
</script>
 
Nutan
0
Tom
Top achievements
Rank 1
answered on 18 Nov 2010, 09:23 AM
Sorry about getting the gender wrong Nutan... ;-)

By inserting the javascript you are disabling Flash support.  So in escence the multi-file select becomes unavailable, downgrading the control to single file select.  I did get this working, but what we need is a way to do multiselection...   HELP...

0
T. Tsonev
Telerik team
answered on 18 Nov 2010, 09:51 AM
Hello Tom,

The latest release of RadAsyncUpload boasts a Silverlight upload module that gets around the limitations the Flash module with regards to authentication.

You can still disable the Flash module in the same manner to avoid these issues. Customers with Silverlight installed will have multiple files selection support while everybody else will fall-back to single file selection.

Please give it a try and let us know if it works well in your scenario.

Regards,
Tsvetomir Tsonev
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Tom
Top achievements
Rank 1
answered on 18 Nov 2010, 10:21 AM
Hi Tsvetomir ,

Are you saying that the Silverlight support is already in the 2010.3 1109 release of RadControls for ASP.Net Ajax?  If so, will the Silverlight call be made if (a) Flash is disabled via the javascript and (b) the client has Silverlight installed?  Or is there more to it?
0
T. Tsonev
Telerik team
answered on 18 Nov 2010, 10:42 AM
Hi Tom,

Yes, Silverlight support is included in the Q3 release. Right-click the upload to check if the module is active. You should see the Silverlight context menu.

The order of loading of the modules is SL -> Flash -> HTML.

Greetings,
Tsvetomir Tsonev
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
ovais
Top achievements
Rank 1
answered on 18 Nov 2014, 12:33 PM
Hi,
I have created a file upload section (RadAsyncUpload) on a SharePoint Web that can be access on every type of device (Computer, Tablets, mobile phone etc).
I have tested the component with every feature on Desktop devices and its working completely fine. Just I have to set "UseApplicationPoolImpersonation" property to "true" as I was facing some issues in uploading.
But when I tested on mobile devices, it starts uploading file and immediately ask for permissions (file attached for reference).
I have tried many solutions which are
excluded this line of code from my web.config"
<location path="Telerik.Web.UI.WebResource.axd">
    <system.web>
        <authorization>
            <allow users="*" />
        </authorization>
    </system.web>
</location>
"
2. Added these line of code just before the control
"
Telerik.Web.UI.RadAsyncUpload.Modules.Flash.isAvailable = function () { return false; }; Telerik.Web.UI.RadAsyncUpload.Modules.FileApi.isAvailable = function() {return false; }; Telerik.Web.UI.RadAsyncUpload.Modules.Silverlight.isAvailable = function() {return false; };
"

I have turned on the "Anonymous Authentication" for my entire SharePoint Web Site too.
One thing I have noticed that, its only working on "Mozilla" browser on Android as its the only browser which support flash, but not working on chrome, safari and other browsers.
Any kind of support from your side will be appreciated.
Thanks
0
Plamen
Telerik team
answered on 20 Nov 2014, 09:12 AM
Hello,

One possible reason for the issue is not proper right set to the temporary folder.In such case use can try to set the permissions of the temporary folder to IIS_IUSRS and IUSR.

Hope this will help you solve 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
Upload (Obsolete)
Asked by
Nutan
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Nutan
Top achievements
Rank 1
Tom
Top achievements
Rank 1
ovais
Top achievements
Rank 1
Plamen
Telerik team
Share this question
or