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

Unable to upload twice

5 Answers 62 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Helmlinger
Top achievements
Rank 1
Helmlinger asked on 16 Dec 2013, 03:31 PM
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.

5 Answers, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 19 Dec 2013, 01:30 PM
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.
0
Helmlinger
Top achievements
Rank 1
answered on 02 Jan 2014, 09:36 AM
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
0
Vessy
Telerik team
answered on 06 Jan 2014, 08:00 AM
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.
0
Helmlinger
Top achievements
Rank 1
answered on 06 Jan 2014, 09:04 AM
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.
0
Vessy
Telerik team
answered on 06 Jan 2014, 12:49 PM
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.
Tags
FileExplorer
Asked by
Helmlinger
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Helmlinger
Top achievements
Rank 1
Share this question
or