RadAsyncUpload control asking for login in SharePoint

Thread is closed for posting
14 posts, 0 answers
  1. Nutan
    Nutan  avatar
    15 posts
    Member since:
    Oct 2008

    Posted 28 Jul 2010 Link to this post

    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
  2. T. Tsonev
    Admin
    T. Tsonev avatar
    2770 posts

    Posted 30 Jul 2010 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Nutan
    Nutan  avatar
    15 posts
    Member since:
    Oct 2008

    Posted 02 Aug 2010 Link to this post

    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
  5. T. Tsonev
    Admin
    T. Tsonev avatar
    2770 posts

    Posted 03 Aug 2010 Link to this post

    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
  6. Nutan
    Nutan  avatar
    15 posts
    Member since:
    Oct 2008

    Posted 03 Aug 2010 Link to this post

    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
  7. T. Tsonev
    Admin
    T. Tsonev avatar
    2770 posts

    Posted 05 Aug 2010 Link to this post

    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
  8. Tom
    Tom avatar
    3 posts
    Member since:
    Jan 2008

    Posted 17 Nov 2010 Link to this post

    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.
  9. Nutan
    Nutan  avatar
    15 posts
    Member since:
    Oct 2008

    Posted 17 Nov 2010 Link to this post

    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
  10. Tom
    Tom avatar
    3 posts
    Member since:
    Jan 2008

    Posted 18 Nov 2010 Link to this post

    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...

  11. T. Tsonev
    Admin
    T. Tsonev avatar
    2770 posts

    Posted 18 Nov 2010 Link to this post

    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.
  12. Tom
    Tom avatar
    3 posts
    Member since:
    Jan 2008

    Posted 18 Nov 2010 Link to this post

    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?
  13. T. Tsonev
    Admin
    T. Tsonev avatar
    2770 posts

    Posted 18 Nov 2010 Link to this post

    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.
  14. ovais
    ovais avatar
    1 posts
    Member since:
    Nov 2014

    Posted 18 Nov 2014 Link to this post

    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
  15. Plamen
    Admin
    Plamen avatar
    2729 posts

    Posted 20 Nov 2014 Link to this post

    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.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017