We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

handle data from server

hello. i use the uploadComponent with react, i have some problems:
1. how to get data from the server after adding or deleting files.
2. open the selected file from server location in my application

1 Reply

CI Christopher Issac Sunder K Syncfusion Team July 16, 2019 01:25 PM UTC

Hi Toko, 

Greetings from Syncfusion support. 

Query: How to get data from server after uploading or deleting the files. 
You can get the data sent from server in uploader success event arguments. Success event will be triggered while file saved/removed successfully from the server. For your reference, we have replaced the LI element status text with data sent received from the server. 
<UploaderComponent id='fileUpload' type='file' ref={(scope) => { this.uploadObj = scope; }} asyncSettings={this.asyncSettings} success={this.onUploadSuccess.bind(this)} removing={this.onRemoveFile.bind(this)}></UploaderComponent> 

onUploadSuccess(args) { 
    args.statusText = args.response.statusText; 
Query: Open the selected file in server in my application. 
You can achieve your requirement by passing the file location Process.Start() method in C#. Please refer the below code block. 
using System.Diagnostics; 
Based on the above queries, we have prepared the sample and attached in the below link. 
Please let us know if you need further assistance on this. 


Live Chat Icon For mobile
Up arrow icon