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

Preload files with error

Thread ID:





149025 Nov 12,2019 10:06 AM UTC Nov 13,2019 01:52 PM UTC React - EJ 2 1
Tags: Uploader
Asked On November 12, 2019 10:06 AM UTC

 I'm using the UploaderComponent component to download the files. However, I would like to preload the files but by default, the files are configured with the state uploaded successfully. my problem is to configure with the state umpled with error and to display a message of error

Sureshkumar P [Syncfusion]
Replied On November 13, 2019 01:52 PM UTC

Greetings from Syncfusion support. 
We have validated your requirement. We don’t have inbuild support for changing the preloaded files status message. but we can achieve your requirement with workaround solution using our fileListRendering event.  
Kindly refer the below code example. 
filelistCreation(args) { 
    if (args.isPreload) { 
        var customMessage = "failed"; 
        var statusElement = args.element.querySelector('.e-file-status'); 
        statusElement.innerText = customMessage; 
We have created a sample based on your requirement. Please find the sample here: https://stackblitz.com/edit/react-jlwbsr-4zdqd5?file=index.js  
To know more about our fileListRendering event. Please refer the below documentation link: https://ej2.syncfusion.com/angular/documentation/api/uploader#filelistrendering  
Sureshkumar P 


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