EdutonPetrpku/Client/wwwroot/js/ckeditorinterop.js
// Prepares the data and sends the request.
Prepares the data and sends the request.
Prepares the data and sends the request .
_sendRequest(file) {
            const data = new FormData();
            data.append('img', file);
            this.xhr.send(data);
        }
_sendRequest ( file ) { const data = new FormData ( ) ; data . append ( 'img' , file ) ; this . xhr . send ( data ) ; }
Prepares the data and sends the request.
Prepares the data and sends the request .
// Prepare the form data. // Important note: This is the right place to implement security mechanisms // like authentication and CSRF protection. For instance, you can use // XMLHttpRequest.setRequestHeader() to set the request headers containing // the CSRF token generated earlier by your application. // Send the request.