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

More than one RadUpload on the page

2 Answers 107 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Airad
Top achievements
Rank 1
Airad asked on 27 Jul 2009, 06:50 AM
Hi!

I have some problems when using RadUpload, for example:

<telerik:RadUpload ID="RadUpload1" runat="server" TargetPhysicalFolder="c:\\folder1\\"/>
<telerik:RadProgressArea id="RadProgressArea1" runat="server"/>
<asp:Button id="button1" runat="server" OnClick="btn1_Click" text="Submit" />

<telerik:RadUpload ID="RadUpload2" runat="server" TargetPhysicalFolder="c:\\folder2\\"/>
<telerik:RadProgressArea id="RadProgressArea2" runat="server"/>
<asp:Button id="button2" runat="server" OnClick="btn2_Click" text="Submit" />

If I select files both in RadUpload1 and RadUpload2, and click button1 to submit RadUpload1, files in RadUpload2 also will be uploaded?

It seems that doing postback will upload all files selected in RadUpload?

Do you have an easy way to make something like an independent upload group including a RadUpload, a RadProgressArea, and a submit button? I just wonder if there is something like this in RadUpload.

:) Thanks!

Best Regards
Airad

2 Answers, 1 is accepted

Sort by
0
Accepted
Kamen Bundev
Telerik team
answered on 27 Jul 2009, 12:37 PM
Hi Airad,

This can be kind of problematic since ASP.NET only allows one form on a page and inputs of type file can't be manipulated with javascript. One way I can think of is to use iframes with separate RadUpload, RadProgressArea and forms in them. This way they will be in different documents and won't be sent together on submit.

Regards,
Kamen Bundev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Airad
Top achievements
Rank 1
answered on 28 Jul 2009, 01:12 AM
:) Thanks, I think so. Iframe is a good choice.

Best Regards
Airad
Tags
Upload (Obsolete)
Asked by
Airad
Top achievements
Rank 1
Answers by
Kamen Bundev
Telerik team
Airad
Top achievements
Rank 1
Share this question
or