Unable to upload twice

6 posts, 0 answers
  1. Helmlinger
    Helmlinger avatar
    3 posts
    Member since:
    Jan 2013

    Posted 16 Dec 2013 Link to this post

    Dear M Telerik,

    I'm currently using a RadFileExplorer control two times in the same page. I have the configuration attributes EnableAsyncUpload="true". When I try to upload a file it works great. But when I try again, I'm unable to click the button to open the file browser. In the HTML code, there is no node <input type="file"> any more.

    This is my specific code :
    <telerik:RadFileExplorer runat="server" ID="ImageExplorer" Width="500" EnableCopy="true">
        <Configuration ViewPaths="~/Portals/0/fichiers/" UploadPaths="~/Portals/0/fichiers/" DeletePaths="~/Portals/0/fichiers/" AllowMultipleSelection="true" MaxUploadFileSize="1024000" EnableAsyncUpload="true"></Configuration>
    </telerik:RadFileExplorer>

    It has the same behaviour in both radFileExplorer.

    Thanks in advance for your help.
  2. Vessy
    Admin
    Vessy avatar
    1389 posts

    Posted 19 Dec 2013 Link to this post

    Hi Helmlinger,

    I am not quite sure whether I understand the exact issue correctly. I made a sample page with both RadFileExplorer controls, configured like the one from the provided code snippet, but managed to upload files in both of them properly. Could you, please, take a look over the video from my test here and let me know whether I am leaving anything out?

    It would be really helpful if you prepare a sample fully runnable project, explaining the steps to reproduce the issue so we could examine the problem on our site.

    Regards,
    Veselina Raykova
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Helmlinger
    Helmlinger avatar
    3 posts
    Member since:
    Jan 2013

    Posted 02 Jan 2014 Link to this post

    Hi,

    You understood it right: I saw your video where it does work.

    I'm having the issue in the DotNetNuke context.

    This HTML code appears between first and second try:
    <span class="dnnSecondaryAction">Choose File</span>

    Edit: just found that other people are having similar issue, related there: http://www.dnnsoftware.com/answers/view/question/cid/153237/page/1
  5. Vessy
    Admin
    Vessy avatar
    1389 posts

    Posted 06 Jan 2014 Link to this post

    Hi Helmlinger,

    Thank you for the clarification.

    From version 5.0 till now DNN uses a Professional provider of RadFileExplorer, which is implementation of the DNN developers and it is not supported by Telerik. As this problem is not reproducible with the built-in provider of the control in a standard ASP.NET page, our suggestion is to post your question in the DNN forums and contact the support of DNN for help.

    Kind regards,
    Veselina Raykova
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  6. Helmlinger
    Helmlinger avatar
    3 posts
    Member since:
    Jan 2013

    Posted 06 Jan 2014 Link to this post

    Hello,

    I fixed it by overriding the method dnnFileInput in my JS. The original method which changed the DOM is now shadowed and can't change the DOM any more.

    The following code was responsible of changing the DOM (in Resources/Shared/scripts/dnn.jquery.js). Just remove this code in the copied method:

                this.wrapper = $("<span class='dnnInputFileWrapper'></span>");
                $ctrl.wrap(this.wrapper);
                var text = $ctrl.data('text');
                text = text || 'Choose File';
                var btn = $("<span class='dnnSecondaryAction'>" + text + "</span>");
                btn.insertBefore($ctrl);

    Thanks a lot for your help, it wasn't a Telerik problem.
  7. Vessy
    Admin
    Vessy avatar
    1389 posts

    Posted 06 Jan 2014 Link to this post

    Hi Helmlinger,

    I am glad you have managed to solve the problem on your own - thank you for sharing the solution with our community.

    Kind regards,
    Veselina Raykova
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017