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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

handle data from server

Thread ID:





145940 Jul 15,2019 10:44 AM UTC Jul 16,2019 01:25 PM UTC React - EJ 2 1
Tags: Uploader
Asked On July 15, 2019 11:11 AM UTC

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

Christopher Issac Sunder K [Syncfusion]
Replied On 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. 



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon