Two Uploadboxes on the same webpage

Hi,

I'm trying to use 2 uploadboxes on the same Webpage. My issue is that I want to have two different saveFiles.ashx. So for the second uploadbox2 I created another .ashx nemed savePhoto.ashx, but when I'm running the uploadbox, that cannot call the savePhoto.ashx.cs.
In generall how can I handle more than one uploadbox on the same webpage with completly different functions on codebehind?

Thank you

3 Replies 1 reply marked as answer

MK Muthukrishnan Kandasamy Syncfusion Team August 11, 2020 07:40 AM UTC

 
Hi George, 
 
Thanks for contacting Syncfusion support. 
 
We have validated your requirement in EJ UploadBox control. We suspect that you have mapped the same save handler file for both UploadBox control. we have prepared sample to meet your requirement in this sample we have added two UploadBox with two different save handler. Please refer to the below code block. 
 
    <label>Upploadbox 1</label> 
<ej:UploadBox ID="upload" runat="server" FileSize="10737418240" SaveUrl="SaveFile.ashx" RemoveUrl="removeFile.ashx"></ej:UploadBox> 
    <label>Upploadbox 2</label> 
<ej:UploadBox ID="UploadBox1" runat="server" FileSize="10737418240" SaveUrl="savePhoto.ashx" RemoveUrl="removeFile.ashx"></ej:UploadBox> 
 
 
The attached sample can be downloaded from the below link. 
 
 
Description 
Link 
Getting started of UploadBox 
File size 
Live demo 
API documentation 
 
Please let us know, if you need any further assistance. 
 
Regards, 
Muthukrishnan K 


Marked as answer

GE George August 11, 2020 02:11 PM UTC

Thank you very much for your instant reply.
It works perfect!!!!


MK Muthukrishnan Kandasamy Syncfusion Team August 12, 2020 04:52 AM UTC

 
Hi George, 
 
Welcome. Please, get back to us if you need any further assistance. We will be happy to assist you. 
 
Regards, 
Muthukrishnan K 


Loader.
Up arrow icon