<div class="container">
<div class="control_wrapper">
<div id='dropArea' style='height: auto; overflow: auto'>
<span id='drop'> <a rel='nofollow' href='' id='browse'><u>Click para seleccionar el archivo</u></a> </span>
@Html.EJS().Uploader("UploadFiles").DropArea("#dropArea").AllowedExtensions(".jpg,.png,.jpeg").Selected("onSelect").Success("onUploadSuccess").Progress("onFileUpload").Removing("onFileRemove").Failure("onUploadFailed").AsyncSettings(new Syncfusion.EJ2.Inputs.UploaderAsyncSettings { SaveUrl = "/Mantenimiento/Preventivo/SaveP", RemoveUrl = @Url.Content("Remove") }).Render()
</div>
</div>
</div>
|
<div class="control_wrapper">
@Html.EJS().TextBox("text").Value("selectValue").Render()
@Html.EJS().Uploader("fileupload").Uploading("onFileUpload").AsyncSettings(new Syncfusion.EJ2.Inputs.UploaderAsyncSettings { SaveUrl = "Home/Save", RemoveUrl = "https://aspnetmvc.syncfusion.com/services/api/uploadbox/Remove" }).Render()
</div>
<script>
function onFileUpload(args) {
// getting the textbox object
var textBoxObj = document.getElementById("text").ej2_instances[0];
args.customFormData = [{ 'text': textBoxObj.value }];
}
</script> |