@{
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> |