I have a use case where I need to drag and drop a file from desktop to UI screen. once file was dropped that will be automatically (with no button click) validated. validation mean record in the file will be validated for correct data. if data is correct saved into database and if incorrect error message should be displayed on screen with the reason for rejection.
I have used XMLHttpRequest send method to submit the form data (that is dragged and dropped file). OnSubmit() method has whole logic for validation and return same view. how to render the view?