Hide default drop area

21 Dec 20221 minute to read

You can achieve this behavior by overriding the corresponding uploader styles. Override the following styles to hide the default drop area behavior.

* .e-upload.e-control
* .e-upload .e-file-select
* .e-upload .e-file-drop
@Html.EJS().Uploader("UploadFiles").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" }).Render()
#droparea {
    padding: 50px 25px;
    margin: 30px auto;
    border: 1px solid #c3c3c3;
    text-align: center;
    width: 20%;
    display: inline-flex;
    }
    .e-file-select,
    .e-file-drop {
    display: none;
    }
    body .e-upload-drag-hover {
    outline: 2px dashed brown;
    }
    #uploadfile {  
    width: 60%;
    display: inline-flex;
    margin-left: 5%;
    }
	.e-control .e-file-select,
	.e-control .e-file-drop {
	  display: none;
	}

NOTE

You can also explore ASP.NET MVC File Upload feature tour page for its groundbreaking features. You can also explore our ASP.NET MVC File Upload example to understand how to browse the files which you want to upload to the server.