Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
150546 | Jan 10,2020 01:57 PM UTC | Jan 17,2020 12:01 PM UTC | ASP.NET Core - EJ 2 | 3 |
![]() |
Tags: File Upload |
@{
var asyncSettings = new Syncfusion.EJ2.Inputs.UploaderAsyncSettings { SaveUrl = "https://aspnetmvc.syncfusion.com/services/api/uploadbox/Save", RemoveUrl = "https://aspnetmvc.syncfusion.com/services/api/uploadbox/Remove" };
}
<form>
<ejs-uploader id="uploadFiles" asyncSettings="@asyncSettings" success="onUploadSuccess" failure="onUploadFailure" autoUpload="false"></ejs-uploader>
</form>
<script>
function onUploadSuccess(args) {
if (args.operation === 'upload') {
console.log(args);
}
}
function onUploadFailure(args) {
console.log('failed');
}
</script> |
<form method="post" enctype="multipart/form-data">
<ejs-uploader id="UploadFiles" autoUpload="false" multiple="false" fileListRendering="onListRendering" ></ejs-uploader>
<br /><br />
<input type="submit" />
</form>
<script>
function onListRendering(args) {
if (window.browserDetails.info.name == "msie" || window.browserDetails.info.name == "edge") {
return;
} else {
this.element.value = "";
}
}
</script> |
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.
This page will automatically be redirected to the sign-in page in 10 seconds.