Customize progressbar
21 Dec 20221 minute to read
You can customize the progress bar’s size, color, and background by overriding the styles in uploader control. Refer to the following example.
@{
var asyncSettings = new Syncfusion.EJ2.Inputs.UploaderAsyncSettings { SaveUrl = "https://services.syncfusion.com/aspnet/production/api/FileUploader/Save", RemoveUrl = "https://services.syncfusion.com/aspnet/production/api/FileUploader/Remove" };
}
<div class="custom_progress">
<ejs-uploader id="UploadFiles" asyncSettings="@asyncSettings">
</ejs-uploader>
</div>
.custom_progress {
max-width: 400px;
margin: 0 auto;
}
.custom_progress .e-upload .e-upload-files .e-upload-file-list .e-file-container .e-progress-inner-wrap .e-upload-progress-bar.e-upload-progress {
background: yellow;
height: 4px;
}
.custom_progress .e-upload .e-upload-files .e-upload-file-list .e-file-container .e-progress-inner-wrap {
height: 4px;
background-color: lightblue;
}
NOTE
You can also explore ASP.NET Core File Upload feature tour page for its groundbreaking features. You can also explore our ASP.NET Core File Upload example to understand how to browse the files which you want to upload to the server.