- Home
- Forum
- ASP.NET MVC - EJ 2
- Custom message for Upload
Custom message for Upload
Hi,
We are trying to customize the message after uploading the file. Please let us know the events available to achieve the same
UploadUrl = "http://localhost:62869/api/SQLProvider/SQLUpload
SIGN IN To post a reply.
3 Replies
1 reply marked as answer
SP
Sowmiya Padmanaban
Syncfusion Team
June 26, 2020 11:12 AM UTC
Hi Mahesh,
Greeting from Syncfusion support.
We have checked your requirement with FileManager component. Success event will trigger after the file uploaded in FileManager. You can change the upload message using that event.
Refer the below code snippet.
|
@Html.EJS().FileManager("file").AjaxSettings(new Syncfusion.EJ2.FileManager.FileManagerAjaxSettings
{
DownloadUrl = "http://localhost:62869/api/SQLProvider/SQLDownload"
}).Success("success").Render()
<script>
function success(args) {
if (args.action == "Upload") {
// Change the upload text.
args.result.statusText = "File uploaded";
}
}
</script> |
Refer the below sample and service link.
Sample link- https://www.syncfusion.com/downloads/support/directtrac/general/ze/WebApplication2-424002639.zip
Note: Run the service and refer the local host URL in FileManager sample.
To know more about the FileManager component, refer the below links.
Please let us, if you need any further assistance.
Regards,
Sowmiya.P
Marked as answer
MM
Mahesh Machina
June 26, 2020 11:32 AM UTC
Thank you Sowmiya. I have explored that event and completed my achievement already
SP
Sowmiya Padmanaban
Syncfusion Team
June 29, 2020 03:35 AM UTC
Hi Mahesh,
We are happy to hear that your problem has been resolved. Please contact us, if you need any help from us.
Regards,
Sowmiya.P
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
- Marked answer
-
MM Mahesh Machina
- Jun 25, 2020 08:46 AM UTC
- Jun 29, 2020 03:35 AM UTC